comparison SkeenCore3BeastMasteryHunter.lua @ 5:afd83bc06b1e v1.3.0

Updated to make use of library
author Emil Madsen <skeen@cs.au.dk>
date Sun, 31 Jul 2011 21:52:18 +0200
parents 629e6e84fd18
children a6e2ff3a8f61
comparison
equal deleted inserted replaced
4:9f81a94993b7 5:afd83bc06b1e
1 -- 1 --
2 -- SkeenCore3BeastMasteryHunter 2 -- SkeenCore3BeastMasteryHunter
3 -- 3 --
4 local LibSkeenCore = LibStub("LibSkeenCore");
4 5
5 local function Rotation() 6 local function Rotation()
6 7
7 local guid = UnitGUID("target") 8 local guid = UnitGUID("target")
8 local puid = UnitGUID("player") 9 local puid = UnitGUID("player")
20 spell.cd4 = nil 21 spell.cd4 = nil
21 22
22 local focus = UnitPower("player") 23 local focus = UnitPower("player")
23 24
24 --Cooldowns 25 --Cooldowns
25 local kill_command_cooldown = GetCooldown(34026) --"Kill Command" 26 local kill_command_cooldown = LibSkeenCore:GetCooldown(34026) --"Kill Command"
26 local kill_shot_cooldown = GetCooldown(53351) --"Kill Shot" 27 local kill_shot_cooldown = LibSkeenCore:GetCooldown(53351) --"Kill Shot"
27 local rapid_fire_cooldown = GetCooldown(3045) --"Rapid Fire" 28 local rapid_fire_cooldown = LibSkeenCore:GetCooldown(3045) --"Rapid Fire"
28 local focus_fire_cooldown = GetCooldown(82692) --"Focus Fire" 29 local focus_fire_cooldown = LibSkeenCore:GetCooldown(82692) --"Focus Fire"
29 local fervor_cooldown = GetCooldown(82726) --"Fervor" 30 local fervor_cooldown = LibSkeenCore:GetCooldown(82726) --"Fervor"
30 local bestial_wrath_cooldown = GetCooldown(19574) --"Bestial Wrath" 31 local bestial_wrath_cooldown = LibSkeenCore:GetCooldown(19574) --"Bestial Wrath"
31 32
32 --Debuff 33 --Debuff
33 local serpent_sting_duration = GetDebuffDuration(1978) --"Serpent Sting" 34 local serpent_sting_duration = LibSkeenCore:GetDebuffDuration(1978) --"Serpent Sting"
34 35
35 -- Get the target's health percentage 36 -- Get the target's health percentage
36 local TargetsPercentOfHealth = (UnitHealth("target") / UnitHealthMax("target") * 100); 37 local TargetsPercentOfHealth = (UnitHealth("target") / UnitHealthMax("target") * 100);
37 38
38 if (kill_command_cooldown < 1) then 39 if (kill_command_cooldown < 1) then