comparison SkeenCore3BeastMasteryHunter.lua @ 13:1040ce99b400 v1.4.4

Updated
author Emil Madsen <skeen@cs.au.dk>
date Thu, 06 Sep 2012 14:09:18 +0200
parents a6e2ff3a8f61
children 6ac320834be1
comparison
equal deleted inserted replaced
12:06453bfcf2c2 13:1040ce99b400
27 local FervorID = 82726 27 local FervorID = 82726
28 local BestialWrathID = 19574 28 local BestialWrathID = 19574
29 local SerpentStingID = 1978 29 local SerpentStingID = 1978
30 local ArcaneShotID = 3044 30 local ArcaneShotID = 3044
31 local CobraShotID = 77767 31 local CobraShotID = 77767
32 32 local HuntersMarkID = 1130
33 local ReadinessID = 23989
33 34
34 local focus = UnitPower("player") 35 local focus = UnitPower("player")
35 36
36 --Cooldowns 37 --Cooldowns
37 local kill_command_cooldown = LibSkeenCore:GetCooldown(KillCommandID) --"Kill Command" 38 local kill_command_cooldown = LibSkeenCore:GetCooldown(KillCommandID) --"Kill Command"
38 local kill_shot_cooldown = LibSkeenCore:GetCooldown(KillShotID) --"Kill Shot" 39 local kill_shot_cooldown = LibSkeenCore:GetCooldown(KillShotID) --"Kill Shot"
39 local rapid_fire_cooldown = LibSkeenCore:GetCooldown(RapidFireID) --"Rapid Fire" 40 local rapid_fire_cooldown = LibSkeenCore:GetCooldown(RapidFireID) --"Rapid Fire"
40 local focus_fire_cooldown = LibSkeenCore:GetCooldown(FocusFireID) --"Focus Fire" 41 local focus_fire_cooldown = LibSkeenCore:GetCooldown(FocusFireID) --"Focus Fire"
41 local fervor_cooldown = LibSkeenCore:GetCooldown(FervorID) --"Fervor" 42 local fervor_cooldown = LibSkeenCore:GetCooldown(FervorID) --"Fervor"
42 local bestial_wrath_cooldown= LibSkeenCore:GetCooldown(BestialWrathID) --"Bestial Wrath" 43 local bestial_wrath_cooldown= LibSkeenCore:GetCooldown(BestialWrathID) --"Bestial Wrath"
43 44 local Readiness_cooldown = LibSkeenCore:GetCooldown(ReadinessID)
45
44 --Debuff 46 --Debuff
45 local serpent_sting_duration = LibSkeenCore:GetDebuffDuration(SerpentStingID) --"Serpent Sting" 47 local serpent_sting_duration = LibSkeenCore:GetDebuffDuration(SerpentStingID) --"Serpent Sting"
48 local HuntersMark_duration = LibSkeenCore:GetDebuffDuration(HuntersMarkID)
46 49
47 -- Get the target's health percentage 50 -- Get the target's health percentage
48 local TargetsPercentOfHealth = (UnitHealth("target") / UnitHealthMax("target") * 100); 51 local TargetsPercentOfHealth = (UnitHealth("target") / UnitHealthMax("target") * 100);
49 52
53 if(HuntersMark_duration < 1) then
54 spell.current = HuntersMarkID
55 elseif (serpent_sting_duration < 1) then
56 if (focus >= 25) then
57 spell.current = SerpentStingID --SS;
58 else
59 spell.next = SerpentStingID --SS;
60 end
50 if (kill_command_cooldown < 1) then 61 if (kill_command_cooldown < 1) then
51 if (focus >= 40) then 62 if (focus >= 40) then
52 spell.current = KillCommandID --KC 63 spell.current = KillCommandID --KC
53 else 64 else
54 spell.next = KillCommandID --KC 65 spell.next = KillCommandID --KC
55 end 66 end
56 elseif (serpent_sting_duration < 1) then
57 if (focus >= 25) then
58 spell.current = SerpentStingID --SS;
59 else
60 spell.next = SerpentStingID --SS;
61 end
62 elseif ((TargetsPercentOfHealth < 20) and (kill_shot_cooldown<1)) then 67 elseif ((TargetsPercentOfHealth < 20) and (kill_shot_cooldown<1)) then
63 spell.current = KillShotID --Kill Shot 68 spell.current = KillShotID --Kill Shot
64 elseif (focus >= 25) then 69 --TODO: FOCUS FIRE
70 elseif (focus >= 60) then
65 spell.current = ArcaneShotID --Arcane Shot 71 spell.current = ArcaneShotID --Arcane Shot
66 else 72 else
67 spell.current = CobraShotID --Cobra Shot 73 spell.current = CobraShotID --Cobra Shot
68 end 74 end
69 75
73 79
74 if (focus_fire_cooldown < 1) then 80 if (focus_fire_cooldown < 1) then
75 spell.cd2 = FocusFireID --Focus fire 81 spell.cd2 = FocusFireID --Focus fire
76 end 82 end
77 83
78 if (fervor_cooldown < 1) then 84 if (Readiness_cooldown < 1) then
79 spell.cd3 = FervorID --Fervor 85 spell.cd3 = ReadinessID --Readiness
80 end 86 end
81 87
82 if (bestial_wrath_cooldown < 1) then 88 if (bestial_wrath_cooldown < 1) then
83 spell.cd4 = BestialWrathID --Bestial Wrath 89 spell.cd4 = BestialWrathID --Bestial Wrath
84 end 90 end