Mercurial > wow > skeencore3beastmasteryhunter
changeset 21:39f3f0dbf42e v1.5.2
Update to new cooldown system
| author | Emil Madsen <skeen@cs.au.dk> |
|---|---|
| date | Wed, 08 May 2013 00:08:19 +0200 |
| parents | a17e3bf11a54 |
| children | 9ed2a02621f3 |
| files | SkeenCore3BeastMasteryHunter.lua SkeenCore3BeastMasteryHunter.toc |
| diffstat | 2 files changed, 13 insertions(+), 25 deletions(-) [+] |
line wrap: on
line diff
--- a/SkeenCore3BeastMasteryHunter.lua Tue May 07 20:52:53 2013 +0200 +++ b/SkeenCore3BeastMasteryHunter.lua Wed May 08 00:08:19 2013 +0200 @@ -3,6 +3,17 @@ -- local LibSkeenCore = LibStub("LibSkeenCore"); +local function Cooldowns() + + -- Ability SpellID + local RapidFireID = 3045 + local StampedeID = 121818 + local ReadinessID = 23989 + local BestialWrathID = 19574 + + return {RapidFireID, StampedeID, ReadinessID, BestialWrathID} +end + local function Rotation() -- Hide the frame, if the target is dead, non existing or friendly. @@ -31,22 +42,18 @@ -- Ability SpellID local KillCommandID = 34026 local KillShotID = 53351 - local RapidFireID = 3045 local FocusFireID = 82692 local FervorID = 82726 - local BestialWrathID = 19574 local SerpentStingID = 1978 local ArcaneShotID = 3044 local CobraShotID = 77767 local HuntersMarkID = 1130 - local ReadinessID = 23989 local AMurderOfCrowsID = 131894 local BlinkStrikeID = 130392 local LynxRushID = 120697 local GlaiveTossID = 117050 local PowershotID = 109259 local BarrageID = 120360 - local StampedeID = 121818 local FrenzyID = 19615 local focus = UnitPower("player") @@ -54,18 +61,14 @@ --Cooldowns local kill_command_cooldown = LibSkeenCore:GetCooldown(KillCommandID) --"Kill Command" local kill_shot_cooldown = LibSkeenCore:GetCooldown(KillShotID) --"Kill Shot" - local rapid_fire_cooldown = LibSkeenCore:GetCooldown(RapidFireID) --"Rapid Fire" local focus_fire_cooldown = LibSkeenCore:GetCooldown(FocusFireID) --"Focus Fire" local fervor_cooldown = LibSkeenCore:GetCooldown(FervorID) --"Fervor" - local bestial_wrath_cooldown = LibSkeenCore:GetCooldown(BestialWrathID) --"Bestial Wrath" - local Readiness_cooldown = LibSkeenCore:GetCooldown(ReadinessID) --"Readiness" local a_murder_of_crows_cooldown = LibSkeenCore:GetCooldown(AMurderOfCrowsID) --"A Murder of Crows" local blink_strike_cooldown = LibSkeenCore:GetCooldown(BlinkStrikeID) --"Blink Strike" local lynx_rush_cooldown = LibSkeenCore:GetCooldown(LynxRushID) --"Lynx Rush" local glaive_toss_cooldown = LibSkeenCore:GetCooldown(GlaiveTossID) --"Glaive Toss" local powershot_cooldown = LibSkeenCore:GetCooldown(PowershotID) --"Powershot" local barrage_cooldown = LibSkeenCore:GetCooldown(BarrageID) --"Barrage" - local stampede_cooldown = LibSkeenCore:GetCooldown(StampedeID) --"Stampede" --Debuff local serpent_sting_duration = LibSkeenCore:GetDebuffDuration(SerpentStingID) --"Serpent Sting" @@ -113,22 +116,6 @@ spell.current = CobraShotID end - if (rapid_fire_cooldown < 1) then - spell.cd1 = RapidFireID - end - - if (stampede_cooldown < 1) then - spell.cd2 = StampedeID - end - - if (Readiness_cooldown < 1) then - spell.cd3 = ReadinessID - end - - if (bestial_wrath_cooldown < 1) then - spell.cd4 = BestialWrathID - end - return spell end @@ -138,6 +125,7 @@ SkeenPlugin.Spec = 1 SkeenPlugin.Version = "5.2.0" SkeenPlugin.Rotation = Rotation +SkeenPlugin.Cooldowns = Cooldowns local SkeenCore3 = _G["SkeenCore3"] SkeenCore3:RegisterPlugin(SkeenPlugin)
--- a/SkeenCore3BeastMasteryHunter.toc Tue May 07 20:52:53 2013 +0200 +++ b/SkeenCore3BeastMasteryHunter.toc Wed May 08 00:08:19 2013 +0200 @@ -1,5 +1,5 @@ ## Title: |cffffd200Skeen|r|cff69ccf0Core3|rBeastMasteryHunter -## Version: 1.5.1 +## Version: 1.5.2 ## Author: Skeen ## Interface: 50200 ## Dependencies: SkeenCore3
