changeset 13:1040ce99b400 v1.4.4

Updated
author Emil Madsen <skeen@cs.au.dk>
date Thu, 06 Sep 2012 14:09:18 +0200
parents 06453bfcf2c2
children bf392a65bd07
files SkeenCore3BeastMasteryHunter.lua SkeenCore3BeastMasteryHunter.toc
diffstat 2 files changed, 19 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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