Mercurial > wow > skeencore3beastmasteryhunter
changeset 9:a6e2ff3a8f61 v1.4.1
Update
| author | Emil Madsen <skeen@cs.au.dk> |
|---|---|
| date | Sun, 19 Feb 2012 20:42:54 +0100 |
| parents | ec564f511087 |
| children | 48434eca8de4 |
| files | SkeenCore3BeastMasteryHunter.lua SkeenCore3BeastMasteryHunter.toc |
| diffstat | 2 files changed, 38 insertions(+), 29 deletions(-) [+] |
line wrap: on
line diff
--- a/SkeenCore3BeastMasteryHunter.lua Fri Sep 02 12:28:09 2011 +0200 +++ b/SkeenCore3BeastMasteryHunter.lua Sun Feb 19 20:42:54 2012 +0100 @@ -5,14 +5,13 @@ local function Rotation() - local guid = UnitGUID("target") - local puid = UnitGUID("player") - + -- Hide the frame, if the target is dead, non existing or friendly. if UnitName("target") == nil or UnitIsFriend("player","target") ~= nil or UnitHealth("target") == 0 then - return nil-- ignore the dead and friendly + return nil end - local spell = {} + -- The table used for spell information (returned to the callee) + local spell = {} spell.current = nil spell.next = nil spell.cd1 = nil @@ -20,70 +19,80 @@ spell.cd3 = nil spell.cd4 = nil + -- 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 focus = UnitPower("player") --Cooldowns - local kill_command_cooldown = LibSkeenCore:GetCooldown(34026) --"Kill Command" - local kill_shot_cooldown = LibSkeenCore:GetCooldown(53351) --"Kill Shot" - local rapid_fire_cooldown = LibSkeenCore:GetCooldown(3045) --"Rapid Fire" - local focus_fire_cooldown = LibSkeenCore:GetCooldown(82692) --"Focus Fire" - local fervor_cooldown = LibSkeenCore:GetCooldown(82726) --"Fervor" - local bestial_wrath_cooldown = LibSkeenCore:GetCooldown(19574) --"Bestial Wrath" + 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" --Debuff - local serpent_sting_duration = LibSkeenCore:GetDebuffDuration(1978) --"Serpent Sting" + local serpent_sting_duration = LibSkeenCore:GetDebuffDuration(SerpentStingID) --"Serpent Sting" -- Get the target's health percentage local TargetsPercentOfHealth = (UnitHealth("target") / UnitHealthMax("target") * 100); if (kill_command_cooldown < 1) then if (focus >= 40) then - spell.current = 34026 --KC + spell.current = KillCommandID --KC else - spell.next = 34026 --KC + spell.next = KillCommandID --KC end elseif (serpent_sting_duration < 1) then if (focus >= 25) then - spell.current = 1978 --SS; + spell.current = SerpentStingID --SS; else - spell.next = 1978 --SS; + spell.next = SerpentStingID --SS; end elseif ((TargetsPercentOfHealth < 20) and (kill_shot_cooldown<1)) then - spell.current = 53351 --Kill Shot + spell.current = KillShotID --Kill Shot elseif (focus >= 25) then - spell.current = 3044 --Arcane Shot + spell.current = ArcaneShotID --Arcane Shot else - spell.current = 77767 --Cobra Shot + spell.current = CobraShotID --Cobra Shot end if (rapid_fire_cooldown < 1) then - spell.cd1 = 3045 --Rapid fire + spell.cd1 = RapidFireID --Rapid fire end if (focus_fire_cooldown < 1) then - spell.cd2 = 82692 --Focus fire + spell.cd2 = FocusFireID --Focus fire end if (fervor_cooldown < 1) then - spell.cd3 = 82726 --Fervor + spell.cd3 = FervorID --Fervor end if (bestial_wrath_cooldown < 1) then - spell.cd4 = 19574 --Bestial Wrath + spell.cd4 = BestialWrathID --Bestial Wrath end return spell end -local SkeenCore3 = _G["SkeenCore3"] - local SkeenPlugin = {} -SkeenPlugin.Name = "SkeenCore3BeastMasteryHunter" +SkeenPlugin.Name = "Hunter: Beast Mastery" SkeenPlugin.Class = "HUNTER" SkeenPlugin.Spec = 1 -SkeenPlugin.Version = 1.00 +SkeenPlugin.Version = "4.3.0" SkeenPlugin.Rotation = Rotation ---SkeenPlugin.Plugin_Active = Plugin_Active +local SkeenCore3 = _G["SkeenCore3"] SkeenCore3:RegisterPlugin(SkeenPlugin)
--- a/SkeenCore3BeastMasteryHunter.toc Fri Sep 02 12:28:09 2011 +0200 +++ b/SkeenCore3BeastMasteryHunter.toc Sun Feb 19 20:42:54 2012 +0100 @@ -1,5 +1,5 @@ ## Title: |cffffd200Skeen|r|cff69ccf0Core3|rBeastMasteryHunter -## Version: 1.3.1 +## Version: 1.4.1 ## Author: Skeen ## Interface: 40200 ## Dependencies: SkeenCore3
