-
Notifications
You must be signed in to change notification settings - Fork 0
/
MONK.lua
53 lines (52 loc) · 2.37 KB
/
MONK.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
return function(addonTable)
-- Ensure the GetRotationFunction table exists
addonTable.GetRotationFunction = addonTable.GetRotationFunction or {}
-- Define rotation logic for Monk specializations
addonTable.GetRotationFunction["MONK"] = {
["BREWMASTER"] = function()
-- Brewmaster Monk rotation logic
if IsUsableSpell("Keg Smash") and GetSpellCooldown("Keg Smash") == 0 then
CastSpellByName("Keg Smash")
end
if IsUsableSpell("Breath of Fire") and GetSpellCooldown("Breath of Fire") == 0 then
CastSpellByName("Breath of Fire")
end
if IsUsableSpell("Tiger Palm") and GetSpellCooldown("Tiger Palm") == 0 then
CastSpellByName("Tiger Palm")
end
if IsUsableSpell("Blackout Strike") and GetSpellCooldown("Blackout Strike") == 0 then
CastSpellByName("Blackout Strike")
end
end,
["MISTWEAVER"] = function()
-- Mistweaver Monk rotation logic
if IsUsableSpell("Renewing Mist") and GetSpellCooldown("Renewing Mist") == 0 then
CastSpellByName("Renewing Mist")
end
if IsUsableSpell("Enveloping Mist") and GetSpellCooldown("Enveloping Mist") == 0 then
CastSpellByName("Enveloping Mist")
end
if IsUsableSpell("Vivify") and GetSpellCooldown("Vivify") == 0 then
CastSpellByName("Vivify")
end
if IsUsableSpell("Essence Font") and GetSpellCooldown("Essence Font") == 0 then
CastSpellByName("Essence Font")
end
end,
["WINDWALKER"] = function()
-- Windwalker Monk rotation logic
if IsUsableSpell("Tiger Palm") and GetSpellCooldown("Tiger Palm") == 0 then
CastSpellByName("Tiger Palm")
end
if IsUsableSpell("Rising Sun Kick") and GetSpellCooldown("Rising Sun Kick") == 0 then
CastSpellByName("Rising Sun Kick")
end
if IsUsableSpell("Fists of Fury") and GetSpellCooldown("Fists of Fury") == 0 then
CastSpellByName("Fists of Fury")
end
if IsUsableSpell("Blackout Kick") and GetSpellCooldown("Blackout Kick") == 0 then
CastSpellByName("Blackout Kick")
end
end,
}
end