# HG changeset patch # User Emil Madsen # Date 1346933358 -7200 # Node ID 1040ce99b400072fafc8ffb6a21f6b74741c32cc # Parent 06453bfcf2c2367bafdf6631ec1137aa9b7ca084 Updated diff -r 06453bfcf2c2 -r 1040ce99b400 SkeenCore3BeastMasteryHunter.lua --- a/SkeenCore3BeastMasteryHunter.lua Tue Feb 21 14:52:34 2012 +0100 +++ b/SkeenCore3BeastMasteryHunter.lua Thu Sep 06 14:09:18 2012 +0200 @@ -29,7 +29,8 @@ local SerpentStingID = 1978 local ArcaneShotID = 3044 local CobraShotID = 77767 - + local HuntersMarkID = 1130 + local ReadinessID = 23989 local focus = UnitPower("player") @@ -40,28 +41,33 @@ 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) + --Debuff local serpent_sting_duration = LibSkeenCore:GetDebuffDuration(SerpentStingID) --"Serpent Sting" + local HuntersMark_duration = LibSkeenCore:GetDebuffDuration(HuntersMarkID) -- Get the target's health percentage local TargetsPercentOfHealth = (UnitHealth("target") / UnitHealthMax("target") * 100); + if(HuntersMark_duration < 1) then + spell.current = HuntersMarkID + elseif (serpent_sting_duration < 1) then + if (focus >= 25) then + spell.current = SerpentStingID --SS; + else + spell.next = SerpentStingID --SS; + end if (kill_command_cooldown < 1) then if (focus >= 40) then spell.current = KillCommandID --KC else spell.next = KillCommandID --KC end - elseif (serpent_sting_duration < 1) then - if (focus >= 25) then - spell.current = SerpentStingID --SS; - else - spell.next = SerpentStingID --SS; - end elseif ((TargetsPercentOfHealth < 20) and (kill_shot_cooldown<1)) then spell.current = KillShotID --Kill Shot - elseif (focus >= 25) then + --TODO: FOCUS FIRE + elseif (focus >= 60) then spell.current = ArcaneShotID --Arcane Shot else spell.current = CobraShotID --Cobra Shot @@ -75,8 +81,8 @@ spell.cd2 = FocusFireID --Focus fire end - if (fervor_cooldown < 1) then - spell.cd3 = FervorID --Fervor + if (Readiness_cooldown < 1) then + spell.cd3 = ReadinessID --Readiness end if (bestial_wrath_cooldown < 1) then diff -r 06453bfcf2c2 -r 1040ce99b400 SkeenCore3BeastMasteryHunter.toc --- a/SkeenCore3BeastMasteryHunter.toc Tue Feb 21 14:52:34 2012 +0100 +++ b/SkeenCore3BeastMasteryHunter.toc Thu Sep 06 14:09:18 2012 +0200 @@ -1,7 +1,7 @@ ## Title: |cffffd200Skeen|r|cff69ccf0Core3|rBeastMasteryHunter -## Version: 1.4.2 +## Version: 1.4.4 ## Author: Skeen -## Interface: 40300 +## Interface: 50001 ## Dependencies: SkeenCore3 ## RequiredDeps: SkeenCore3 ## SavedVariables: SkeenBeastMasteryHunterdb