-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlightweave.lua
193 lines (159 loc) · 6.55 KB
/
lightweave.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
-- ProbablyEngine Rotation Packager
-- Custom Mistweaver Monk Rotation
-- Created on Dec 31st 2013 9:16 am
-- Modified on Jan 20th 2014 6:36 pm
-- Version 1.0.6
ProbablyEngine.library.register('coreHealing', {
needsHealing = function(percent, count)
return ProbablyEngine.raid.needsHealing(tonumber(percent)) >= count
end,
needsDispelled = function(spell)
for unit,_ in pairs(ProbablyEngine.raid.roster) do
if UnitDebuff(unit, spell) then
ProbablyEngine.dsl.parsedTarget = unit
return true
end
end
end,
})
ProbablyEngine.listener.register('LFG_PROPOSAL_SHOW', AcceptProposal)
ProbablyEngine.rotation.register_custom(270, '|cFF32ff84Svs LightWeave', {
{ '115921', -- Legacy of the Emperor
{
'!player.buff(117666).any', -- Legacy of the Emperor
'!player.buff(1126).any', -- Mark of the Wild
'!player.buff(90363).any', -- Embrace of the Shale Spider
'!player.buff(20217).any' -- Blessing of Kings
}
},
-- Hotkeys
{ '115313', 'modifier.lshift', 'ground' }, -- Summon Jade Serpent Statue
{ '!115450', 'modifier.lalt', 'mouseover' }, -- Detox Mousever
{ '!/targetenemy [noharm]', { '!target.alive', '!target.enemy', '!target.exists' }}, -- Autotarget
-- Interrupt
{ '116705', 'target.interruptAt(50)' }, -- Spear Hand Strike
-- Defensives
{ '115203', 'player.health < 30' }, -- Fortifying Brew
{ '!/run UseItemByName(5512)', 'player.health < 30' }, -- Healthstone
{ '137562', 'player.state.disorient' }, -- Nimble Brew
{ '137562', 'player.state.stun' },
{ '137562', 'player.state.root' },
{ '137562', 'player.state.snare' },
{ '137562', 'player.state.fear' },
-- Legendary Meta Support
{ '!108557', { 'player.buff(137331)', 'target.spell(108557).range', '!modifier.last' }}, -- Jab
-- Mana management
{ '!100784', { 'player.buff(139597)', 'target.spell(108557).range', 'modifier.multitarget' }}, -- Blackout Kick/Muscle Memory
{ '!100787', { 'player.buff(139597)', 'target.spell(100787).range' }}, -- Tiger Palm/Muscle Memory
{ '123761', { 'player.buff(115867).count >= 2', 'player.mana <= 80' }}, -- Mana Tea
{ '108557', { 'target.spell(108557).range', 'player.mana <= 25', '!modifier.last' }}, -- Jab
{ '#trinket1', 'player.mana < 80' },
{ '#trinket2', 'player.mana < 80' },
{ '115080', { -- Touch of Death
'!target.range > 5',
'player.buff(121125)' -- Death Note
}},
-- Mouseover Healing
{{
{ '!/stopcasting', {
'mouseover.health = 100',
'player.casting(115175)'
}},
{ '124682', { -- Enveloping Mist
'mouseover.health < 70',
'mouseover.spell(124682).range',
'player.chi >= 3',
'player.casting(115175)'
}},
{ '116694', { -- Surging Mist
'mouseover.health < 85',
'mouseover.spell(116694).range',
'player.mana > 25',
'player.casting(115175)'
}},
{ '115175', { -- Soothing Mist
'mouseover.health < 100',
'mouseover.spell(115175).range'
}, 'mouseover' },
}, 'toggle.mouseover' },
{ '115310', { -- Revival
'@coreHealing.needsHealing(70, 4)',
}, 'lowest' },
-- Life Cocoon
{ '116849', 'tank.health < 30', 'tank' },
{ '116849', 'lowest.health < 20', 'lowest' },
{ '116680', '@coreHealing.needsHealing(85, 3)' }, -- Thunder Focus Tea
-- Uplift
{ '!116670', { 'player.chi >= 2', '@coreHealing.needsHealing(70, 4)' }, nil },
{ '116670', { 'player.chi >= 5' }, nil },
{{
{ '116847' }, -- Rushing Jade Wind
{ '101546' }, -- Spinning Crane Kick
}, 'modifier.multitarget' },
-- Cooldowns
{{
{ '#gloves' },
{ '/run CastSpellByID(121279)', 'player.spell(121279).cooldown < 1', 'player' }, -- Lifeblood, thanks to Mavmins and Backburn
{ '123904', '@coreHealing.needsHealing(70, 4)' }, -- Invoke Xuen, the White Tiger
}, 'modifier.cooldowns' },
{ '115151', { 'tank.health < 99', 'tank.spell(115151).range' }, 'tank' }, -- Renewing Mist
{ '115151', { 'lowest.health < 99', '!lowest.buff(119611)', 'lowest.spell(115151).range' }, 'lowest' }, -- Renewing Mist
{ '115151', 'player.chi < 5' }, -- Renewing Mist
{ '115098', { 'lowest.health < 90', 'lowest.spell(115098).range' }, 'lowest'}, -- Chi Wave
{ '115399', { '!player.buff(137331)', '!player.buff(139597)', '!modifier.last' }}, -- Chi Brew
{ '115072', { -- Expel Harm
'player.health < 80',
'!player.buff(137331)',
}},
{ '108557', { 'player.chi < 1', 'target.spell(108557).range' }}, -- Jab
{ '100784', { '!player.buff(127722)', 'target.spell(108557).range' }}, -- Blackout Kick/Serpent's Zeal
{ '100784', { 'player.buff(127722).duration <= 2', 'target.spell(108557).range' }}, -- Blackout Kick/Serpent's Zeal
{ '100787', { '!player.buff(125359)', 'target.spell(108557).range' } }, -- Tiger Palm/Tiger Power
{ '100787', { 'player.buff(125359).duration <= 2', 'target.spell(108557).range' }}, -- Tiger Palm/Tiger Power
-- Crackling Jade Lightning
{{
{ '117952', { 'player.chi < 5', 'target.spell(117952).range', '!player.buff(139597)' }},
{ '117952', { 'player.chi < 5', 'target.spell(117952).range', '!player.buff(137331)' }},
}, '!player.moving' },
}, {
-- Out of Combat
{ '115921', -- Legacy of the Emperor
{
'!player.buff(117666).any', -- Legacy of the Emperor Buff
'!player.buff(1126).any', -- Mark of the Wild
'!player.buff(90363).any', -- Embrace of the Shale Spider
'!player.buff(20217).any' -- Blessing of Kings
}
},
{ '115313', 'modifier.lshift', 'ground' }, -- Summon Jade Serpent Statue
{ '115072', 'player.health < 80' }, -- Expel Harm
{ '115151', { 'lowest.health < 99', '!lowest.buff(119611)', '!lowest.range > 40' }, 'lowest' }, -- Renewing Mist
{ '115151', 'player.chi < 5' }, -- Renewing Mist
{ '116670', { 'player.chi >= 2', '@coreHealing.needsHealing(60, 4)' }, nil }, -- Uplift
{ '115450', 'modifier.lalt', 'mouseover' }, -- Detox Mousever
-- Mouseover Healing
{{
{ '!/stopcasting', {
'mouseover.health = 100',
'player.casting(115175)'
}},
{ '124682', { -- Enveloping Mist
'mouseover.health < 70',
'mouseover.spell(124682).range',
'player.chi >= 3',
'player.casting(115175)'
}},
{ '116694', { -- Surging Mist
'mouseover.health < 85',
'mouseover.spell(116694).range',
'player.mana > 25',
'player.casting(115175)'
}},
{ '115175', { -- Soothing Mist
'mouseover.health < 100',
'mouseover.spell(115175).range'
}, 'mouseover' },
}, 'toggle.mouseover' },
}, function()
ProbablyEngine.toggle.create('mouseover', 'Interface\\Icons\\ability_monk_soothingmists', 'Mouseover Healing', 'Toggle Mouseover Healing For SoO')
end)