-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmonk.lua
875 lines (758 loc) · 33.6 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
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
ConRO.Monk = {};
ConRO.Monk.CheckTalents = function()
end
ConRO.Monk.CheckPvPTalents = function()
end
local ConRO_Monk, ids = ...;
function ConRO:EnableRotationModule(mode)
mode = mode or 0;
self.ModuleOnEnable = ConRO.Monk.CheckTalents;
self.ModuleOnEnable = ConRO.Monk.CheckPvPTalents;
if mode == 0 then
self.Description = "Monk [No Specialization Under 10]";
self.NextSpell = ConRO.Monk.Under10;
self.ToggleHealer();
end;
if mode == 1 then
self.Description = "Monk [Brewmaster - Tank]";
if ConRO.db.profile._Spec_1_Enabled then
self.NextSpell = ConRO.Monk.Brewmaster;
self.ToggleDamage();
self.BlockAoE();
ConROWindow:SetAlpha(ConRO.db.profile.transparencyWindow);
ConRODefenseWindow:SetAlpha(ConRO.db.profile.transparencyWindow);
else
self.NextSpell = ConRO.Monk.Disabled;
self.ToggleHealer();
ConROWindow:SetAlpha(0);
ConRODefenseWindow:SetAlpha(0);
end
end;
if mode == 2 then
self.Description = "Monk [Mistweaver - Healer]";
if ConRO.db.profile._Spec_2_Enabled then
self.NextSpell = ConRO.Monk.Mistweaver;
self.ToggleHealer();
ConROWindow:SetAlpha(ConRO.db.profile.transparencyWindow);
ConRODefenseWindow:SetAlpha(ConRO.db.profile.transparencyWindow);
else
self.NextSpell = ConRO.Monk.Disabled;
self.ToggleHealer();
ConROWindow:SetAlpha(0);
ConRODefenseWindow:SetAlpha(0);
end
end;
if mode == 3 then
self.Description = "Monk [Windwalker - Melee]";
if ConRO.db.profile._Spec_3_Enabled then
self.NextSpell = ConRO.Monk.Windwalker;
self.ToggleDamage();
ConROWindow:SetAlpha(ConRO.db.profile.transparencyWindow);
ConRODefenseWindow:SetAlpha(ConRO.db.profile.transparencyWindow);
else
self.NextSpell = ConRO.Monk.Disabled;
self.ToggleHealer();
ConROWindow:SetAlpha(0);
ConRODefenseWindow:SetAlpha(0);
end
end;
self:RegisterEvent('UNIT_SPELLCAST_SUCCEEDED');
self.lastSpellId = 0;
end
function ConRO:EnableDefenseModule(mode)
mode = mode or 0;
if mode == 0 then
self.NextDef = ConRO.Monk.Under10Def;
end;
if mode == 1 then
if ConRO.db.profile._Spec_1_Enabled then
self.NextDef = ConRO.Monk.BrewmasterDef;
else
self.NextDef = ConRO.Monk.Disabled;
end
end;
if mode == 2 then
if ConRO.db.profile._Spec_2_Enabled then
self.NextDef = ConRO.Monk.MistweaverDef;
else
self.NextDef = ConRO.Monk.Disabled;
end
end;
if mode == 3 then
if ConRO.db.profile._Spec_3_Enabled then
self.NextDef = ConRO.Monk.WindwalkerDef;
else
self.NextDef = ConRO.Monk.Disabled;
end
end;
end
function ConRO:UNIT_SPELLCAST_SUCCEEDED(event, unitID, lineID, spellID)
if unitID == 'player' then
self.lastSpellId = spellID;
end
end
function ConRO.Monk.Disabled(_, timeShift, currentSpell, gcd, tChosen, pvpChosen)
return nil;
end
--Info
local _Player_Level = UnitLevel("player");
local _Player_Percent_Health = ConRO:PercentHealth('player');
local _is_PvP = ConRO:IsPvP();
local _in_combat = UnitAffectingCombat('player');
local _party_size = GetNumGroupMembers();
local _is_PC = UnitPlayerControlled("target");
local _is_Enemy = ConRO:TarHostile();
local _Target_Health = UnitHealth('target');
local _Target_Percent_Health = ConRO:PercentHealth('target');
--Resources
local _Chi, _Chi_Max = ConRO:PlayerPower('Chi');
local _Energy, _Energy_Max = ConRO:PlayerPower('Energy');
local _Mana, _Mana_Max, _Mana_Percent = ConRO:PlayerPower('Mana');
--Conditions
local _Queue = 0;
local _is_moving = ConRO:PlayerSpeed();
local _enemies_in_melee, _target_in_melee = ConRO:Targets("Melee");
local _enemies_in_10yrds, _target_in_10yrds = ConRO:Targets("10");
local _enemies_in_25yrds, _target_in_25yrds = ConRO:Targets("25");
local _enemies_in_40yrds, _target_in_40yrds = ConRO:Targets("40");
local _can_Execute = _Target_Percent_Health < 20;
--Racials
local _AncestralCall, _AncestralCall_RDY = _, _;
local _ArcanePulse, _ArcanePulse_RDY = _, _;
local _Berserking, _Berserking_RDY = _, _;
local _ArcaneTorrent, _ArcaneTorrent_RDY = _, _;
local _Cannibalize, _Cannibalize_RDY = _, _;
local _GiftoftheNaaru, _GiftoftheNaaru_RDY = _, _;
local HeroSpec, Racial = ids.HeroSpec, ids.Racial;
function ConRO:Stats()
_Player_Level = UnitLevel("player");
_Player_Percent_Health = ConRO:PercentHealth('player');
_is_PvP = ConRO:IsPvP();
_in_combat = UnitAffectingCombat('player');
_party_size = GetNumGroupMembers();
_is_PC = UnitPlayerControlled("target");
_is_Enemy = ConRO:TarHostile();
_Target_Health = UnitHealth('target');
_Target_Percent_Health = ConRO:PercentHealth('target');
_Chi, _Chi_Max = ConRO:PlayerPower('Chi');
_Energy, _Energy_Max = ConRO:PlayerPower('Energy');
_Mana, _Mana_Max, _Mana_Percent = ConRO:PlayerPower('Mana');
_Queue = 0;
_is_moving = ConRO:PlayerSpeed();
_enemies_in_melee, _target_in_melee = ConRO:Targets("Melee");
_enemies_in_10yrds, _target_in_10yrds = ConRO:Targets("10");
_enemies_in_25yrds, _target_in_25yrds = ConRO:Targets("25");
_enemies_in_40yrds, _target_in_40yrds = ConRO:Targets("40");
_can_Execute = _Target_Percent_Health < 20;
_AncestralCall, _AncestralCall_RDY = ConRO:AbilityReady(Racial.AncestralCall, timeShift);
_ArcanePulse, _ArcanePulse_RDY = ConRO:AbilityReady(Racial.ArcanePulse, timeShift);
_Berserking, _Berserking_RDY = ConRO:AbilityReady(Racial.Berserking, timeShift);
_ArcaneTorrent, _ArcaneTorrent_RDY = ConRO:AbilityReady(Racial.ArcaneTorrent, timeShift);
_Cannibalize, _Cannibalize_RDY = ConRO:AbilityReady(Racial.Cannibalize, timeShift);
_GiftoftheNaaru, _GiftoftheNaaru_RDY = ConRO:AbilityReady(Racial.GiftoftheNaaru, timeShift);
end
function ConRO.Monk.Under10(_, timeShift, currentSpell, gcd, tChosen, pvpChosen)
wipe(ConRO.SuggestedSpells);
ConRO:Stats();
--Abilities
--Warnings
--Rotations
return nil;
end
function ConRO.Monk.Under10Def(_, timeShift, currentSpell, gcd, tChosen, pvpChosen)
wipe(ConRO.SuggestedDefSpells);
ConRO:Stats();
--Abilities
--Warnings
--Rotations
return nil;
end
function ConRO.Monk.Brewmaster(_, timeShift, currentSpell, gcd, tChosen, pvpChosen)
wipe(ConRO.SuggestedSpells);
ConRO:Stats();
local Ability, Form, Buff, Debuff, PetAbility, PvPTalent = ids.Bm_Ability, ids.Bm_Form, ids.Bm_Buff, ids.Bm_Debuff, ids.Bm_PetAbility, ids.Bm_PvPTalent;
--Abilities
local _BlackoutKick, _BlackoutKick_RDY = ConRO:AbilityReady(Ability.BlackoutKick, timeShift);
local _BlackoutCombo_BUFF = ConRO:Aura(Buff.BlackoutCombo, timeShift);
local _CharredPassions_BUFF = ConRO:Aura(Buff.CharredPassions, timeShift);
local _BlackOxBrew, _BlackOxBrew_RDY = ConRO:AbilityReady(Ability.BlackOxBrew, timeShift);
local _BreathofFire, _BreathofFire_RDY = ConRO:AbilityReady(Ability.BreathofFire, timeShift);
local _CelestialBrew, _CelestialBrew_RDY = ConRO:AbilityReady(Ability.CelestialBrew, timeShift);
local _ChiBurst, _ChiBurst_RDY = ConRO:AbilityReady(Ability.ChiBurst, timeShift);
local _ChiTorpedo, _ChiTorpedo_RDY = ConRO:AbilityReady(Ability.ChiTorpedo, timeShift);
local _ChiTorpedo_BUFF = ConRO:Aura(Buff.ChiTorpedo, timeShift);
local _ExplodingKeg, _ExplodingKeg_RDY = ConRO:AbilityReady(Ability.ExplodingKeg, timeShift);
local _InvokeNiuzaotheBlackOx, _InvokeNiuzaotheBlackOx_RDY = ConRO:AbilityReady(Ability.InvokeNiuzaotheBlackOx, timeShift);
local _KegSmash, _KegSmash_RDY = ConRO:AbilityReady(Ability.KegSmash, timeShift);
local _KegSmash_DEBUFF = ConRO:TargetAura(Debuff.KegSmash, timeShift);
local _KegSmash_CHARGES = ConRO:SpellCharges(_KegSmash);
local _Provoke, _Provoke_RDY = ConRO:AbilityReady(Ability.Provoke, timeShift);
local _PurifyingBrew, _PurifyingBrew_RDY = ConRO:AbilityReady(Ability.PurifyingBrew, timeShift);
local _PurifyingBrew_CHARGES = ConRO:SpellCharges(_PurifyingBrew);
local _RisingSunKick, _RisingSunKick_RDY = ConRO:AbilityReady(Ability.RisingSunKick, timeShift);
local _Roll, _Roll_RDY = ConRO:AbilityReady(Ability.Roll, timeShift);
local _RushingJadeWind, _RushingJadeWind_RDY = ConRO:AbilityReady(Ability.RushingJadeWind, timeShift);
local _RushingJadeWind_BUFF = ConRO:Aura(Buff.RushingJadeWind, timeShift);
local _SpearHandStrike, _SpearHandStrike_RDY = ConRO:AbilityReady(Ability.SpearHandStrike, timeShift);
local _SpinningCraneKick, _SpinningCraneKick_RDY = ConRO:AbilityReady(Ability.SpinningCraneKick, timeShift);
local _TigerPalm, _TigerPalm_RDY = ConRO:AbilityReady(Ability.TigerPalm, timeShift);
local _TigersLust, _TigersLust_RDY = ConRO:AbilityReady(Ability.TigersLust, timeShift);
local _TouchofDeath, _TouchofDeath_RDY = ConRO:AbilityReady(Ability.TouchofDeath, timeShift);
local _WeaponsofOrder, _WeaponsofOrder_RDY = ConRO:AbilityReady(Ability.WeaponsofOrder, timeShift);
local _WeaponsofOrder_BUFF = ConRO:Aura(Buff.WeaponsofOrder, timeShift);
--Conditions
if tChosen[Ability.PresstheAdvantage.talentID] then
_TigerPalm_RDY = false;
end
--Indicators
ConRO:AbilityInterrupt(_SpearHandStrike, _SpearHandStrike_RDY and ConRO:Interrupt());
ConRO:AbilityPurge(_ArcaneTorrent, _ArcaneTorrent_RDY and _target_in_melee and ConRO:Purgable());
ConRO:AbilityMovement(_Roll, _Roll_RDY and not tChosen[Ability.ChiTorpedo.talentID]);
ConRO:AbilityMovement(_ChiTorpedo, _ChiTorpedo_RDY and not _ChiTorpedo_BUFF);
ConRO:AbilityMovement(_TigersLust, _TigersLust_RDY);
ConRO:AbilityTaunt(_Provoke, _Provoke_RDY and (not ConRO:InRaid() or (ConRO:InRaid() and ConRO:TarYou())));
ConRO:AbilityBurst(_BlackOxBrew, _BlackOxBrew_RDY and _Energy <= 30 and not _CelestialBrew_RDY and not _PurifyingBrew_RDY and ConRO:BurstMode(_BlackOxBrew));
ConRO:AbilityBurst(_ExplodingKeg, _ExplodingKeg_RDY and ConRO:BurstMode(_ExplodingKeg));
ConRO:AbilityBurst(_InvokeNiuzaotheBlackOx, _InvokeNiuzaotheBlackOx_RDY and ConRO:BurstMode(_InvokeNiuzaotheBlackOx));
ConRO:AbilityBurst(_TouchofDeath, _TouchofDeath_RDY and ConRO:BurstMode(_TouchofDeath));
ConRO:AbilityBurst(_WeaponsofOrder, _WeaponsofOrder_RDY and _in_combat and ConRO:BurstMode(_WeaponsofOrder));
--Rotations
repeat
while(true) do
if not _in_combat then
if _RushingJadeWind_RDY and not _RushingJadeWind_BUFF then
tinsert(ConRO.SuggestedSpells, _RushingJadeWind);
_RushingJadeWind_RDY = false;
_Queue = _Queue + 1;
break;
end
end
if _BlackOxBrew_RDY and _Energy <= 30 and _PurifyingBrew_CHARGES <= 0 and not _CelestialBrew_RDY and ConRO:FullMode(_BlackOxBrew) then
tinsert(ConRO.SuggestedSpells, _BlackOxBrew);
_BlackOxBrew_RDY = false;
_Queue = _Queue + 1;
break;
end
if _TouchofDeath_RDY and ConRO:FullMode(_TouchofDeath) then
tinsert(ConRO.SuggestedSpells, _TouchofDeath);
_TouchofDeath_RDY = false;
_Queue = _Queue + 1;
break;
end
if _InvokeNiuzaotheBlackOx_RDY and ConRO:FullMode(_InvokeNiuzaotheBlackOx) then
tinsert(ConRO.SuggestedSpells, _InvokeNiuzaotheBlackOx);
_InvokeNiuzaotheBlackOx_RDY = false;
_Queue = _Queue + 1;
break;
end
if _BlackoutKick_RDY and (_CharredPassions_BUFF or (tChosen[Ability.BlackoutCombo.talentID] and _BreathofFire_RDY)) then
tinsert(ConRO.SuggestedSpells, _BlackoutKick);
_BlackoutKick_RDY = false;
_Queue = _Queue + 1;
break;
end
if _KegSmash_RDY and not _BlackoutCombo_BUFF and (not tChosen[Ability.StormstoutsLastKeg.talentID] or _KegSmash_CHARGES > 1) then
tinsert(ConRO.SuggestedSpells, _KegSmash);
_KegSmash_RDY = false;
_Queue = _Queue + 1;
break;
end
if _BreathofFire_RDY then
tinsert(ConRO.SuggestedSpells, _BreathofFire);
_BreathofFire_RDY = false;
_Queue = _Queue + 1;
break;
end
if _WeaponsofOrder_RDY and ConRO:FullMode(_WeaponsofOrder) then
tinsert(ConRO.SuggestedSpells, _WeaponsofOrder);
_WeaponsofOrder_RDY = false;
_Queue = _Queue + 1;
break;
end
if _BlackoutKick_RDY then
tinsert(ConRO.SuggestedSpells, _BlackoutKick);
_BlackoutKick_RDY = false;
_Queue = _Queue + 1;
break;
end
if _RisingSunKick_RDY then
tinsert(ConRO.SuggestedSpells, _RisingSunKick);
_RisingSunKick_RDY = false;
_Queue = _Queue + 1;
break;
end
if _ExplodingKeg_RDY and _RushingJadeWind_BUFF and ConRO:FullMode(_ExplodingKeg) then
tinsert(ConRO.SuggestedSpells, _ExplodingKeg);
_ExplodingKeg_RDY = false;
_Queue = _Queue + 1;
break;
end
if _SpinningCraneKick_RDY and (_CharredPassions_BUFF or _ExplodingKeg_DEBUFF) then
tinsert(ConRO.SuggestedSpells, _SpinningCraneKick);
_Queue = _Queue + 1;
break;
end
if _KegSmash_RDY and tChosen[Ability.StormstoutsLastKeg.talentID] and _KegSmash_CHARGES >= 1 then
tinsert(ConRO.SuggestedSpells, _KegSmash);
_KegSmash_RDY = false;
_Queue = _Queue + 1;
break;
end
if _ChiBurst_RDY then
tinsert(ConRO.SuggestedSpells, _ChiBurst);
_ChiBurst_RDY = false;
_Queue = _Queue + 1;
break;
end
if _RushingJadeWind_RDY and not _RushingJadeWind_BUFF then
tinsert(ConRO.SuggestedSpells, _RushingJadeWind);
_RushingJadeWind_RDY = false;
_Queue = _Queue + 1;
break;
end
if _enemies_in_melee >= 3 or tChosen[Ability.WalkwiththeOx.talentID] then
if _SpinningCraneKick_RDY and _Energy >= 65 then
tinsert(ConRO.SuggestedSpells, _SpinningCraneKick);
_Queue = _Queue + 1;
break;
end
else
if _TigerPalm_RDY and _Energy >= 65 then
tinsert(ConRO.SuggestedSpells, _TigerPalm);
_Queue = _Queue + 1;
break;
end
end
tinsert(ConRO.SuggestedSpells, 289603); --Waiting Spell Icon
_Queue = _Queue + 3;
break;
end
until _Queue >= 3;
return nil;
end
function ConRO.Monk.BrewmasterDef(_, timeShift, currentSpell, gcd, tChosen, pvpChosen)
wipe(ConRO.SuggestedDefSpells);
ConRO:Stats();
local Ability, Form, Buff, Debuff, PetAbility, PvPTalent = ids.Bm_Ability, ids.Bm_Form, ids.Bm_Buff, ids.Bm_Debuff, ids.Bm_PetAbility, ids.Bm_PvPTalent;
--Abilities
local _CelestialBrew, _CelestialBrew_RDY = ConRO:AbilityReady(Ability.CelestialBrew, timeShift);
local _ExpelHarm, _ExpelHarm_RDY = ConRO:AbilityReady(Ability.ExpelHarm, timeShift);
local _FortifyingBrew, _FortifyingBrew_RDY = ConRO:AbilityReady(Ability.FortifyingBrew, timeShift);
local _PurifyingBrew, _PurifyingBrew_RDY = ConRO:AbilityReady(Ability.PurifyingBrew, timeShift);
local _PurifiedChi_BUFF = ConRO:Aura(Buff.PurifiedChi, timeShift);
local _PurifyingBrew_CHARGES = ConRO:SpellCharges(Ability.PurifyingBrew.spellID);
local _HighStagger_DEBUFF = ConRO:Aura(Debuff.HighStagger, timeShift, 'HARMFUL');
local _MediumStagger_DEBUFF = ConRO:Aura(Debuff.MediumStagger, timeShift, 'HARMFUL');
local _Vivify, _Vivify_RDY = ConRO:AbilityReady(Ability.Vivify, timeShift);
local _VivacousVivification_BUFF = ConRO:Aura(Buff.VivacousVivification, timeShift);
local _ZenMeditation, _ZenMeditation_RDY = ConRO:AbilityReady(Ability.ZenMeditation, timeShift);
local _DampenHarm, _DampenHarm_RDY = ConRO:AbilityReady(Ability.DampenHarm, timeShift);
--Rotations
if _CelestialBrew_RDY and _PurifiedChi_BUFF then
tinsert(ConRO.SuggestedDefSpells, _CelestialBrew);
end
if _PurifyingBrew_RDY and ((_PurifyingBrew_CHARGES >= 1 and _HighStagger_DEBUFF) or (_MediumStagger_DEBUFF and (_PurifyingBrew_CHARGES >= 2 or _Player_Percent_Health <= 50))) then
tinsert(ConRO.SuggestedDefSpells, _PurifyingBrew);
end
if _ExpelHarm_RDY and _Player_Percent_Health <= 50 then
tinsert(ConRO.SuggestedDefSpells, _ExpelHarm);
end
if _Vivify_RDY and _VivacousVivification_BUFF and _Player_Percent_Health <= 75 then
tinsert(ConRO.SuggestedDefSpells, _Vivify);
end
if _DampenHarm_RDY then
tinsert(ConRO.SuggestedDefSpells, _DampenHarm);
end
if _FortifyingBrew_RDY then
tinsert(ConRO.SuggestedDefSpells, _FortifyingBrew);
end
return nil;
end
function ConRO.Monk.Mistweaver(_, timeShift, currentSpell, gcd, tChosen, pvpChosen)
wipe(ConRO.SuggestedSpells);
ConRO:Stats();
local Ability, Form, Buff, Debuff, PetAbility, PvPTalent = ids.Mw_Ability, ids.Mw_Form, ids.Mw_Buff, ids.Mw_Debuff, ids.Mw_PetAbility, ids.Mw_PvPTalent;
--Abilities
local _BlackoutKick, _BlackoutKick_RDY = ConRO:AbilityReady(Ability.BlackoutKick, timeShift);
local _ChiTorpedo, _ChiTorpedo_RDY = ConRO:AbilityReady(Ability.ChiTorpedo, timeShift);
local _ChiTorpedo_BUFF = ConRO:Aura(Buff.ChiTorpedo, timeShift);
local _EnvelopingMist, _EnvelopingMist_RDY = ConRO:AbilityReady(Ability.EnvelopingMist, timeShift);
local _EnvelopingMist_BUFF = ConRO:Aura(Buff.EnvelopingMist, timeShift);
local _JadefireStomp, _JadefireStomp_RDY = ConRO:AbilityReady(Ability.JadefireStomp, timeShift);
local _JadefireStomp_BUFF = ConRO:Aura(Buff.JadefireStomp, timeShift);
local _AncientTeachings_BUFF = ConRO:Aura(Buff.AncientTeachings, timeShift);
local _ManaTea, _ManaTea_RDY = ConRO:AbilityReady(Ability.ManaTea, timeShift);
local _ManaTea_BUFF = ConRO:Aura(Buff.ManaTea, timeShift);
local _ManaTeaLeaves_BUFF, _ManaTeaLeaves_COUNT = ConRO:Aura(Buff.ManaTeaLeaves, timeShift);
local _RenewingMist, _RenewingMist_RDY = ConRO:AbilityReady(Ability.RenewingMist, timeShift);
local _RenewingMist_BUFF = ConRO:Aura(Buff.RenewingMist, timeShift);
local _RisingSunKick, _RisingSunKick_RDY, _RisingSunKick_CD, _RisingSunKick_MaxCD = ConRO:AbilityReady(Ability.RisingSunKick, timeShift);
local _Roll, _Roll_RDY = ConRO:AbilityReady(Ability.Roll, timeShift);
local _SpearHandStrike, _SpearHandStrike_RDY = ConRO:AbilityReady(Ability.SpearHandStrike, timeShift);
local _SpinningCraneKick, _SpinningCraneKick_RDY = ConRO:AbilityReady(Ability.SpinningCraneKick, timeShift);
local _SummonJadeSerpentStatue, _SummonJadeSerpentStatue_RDY = ConRO:AbilityReady(Ability.SummonJadeSerpentStatue, timeShift);
local _TigerPalm, _TigerPalm_RDY = ConRO:AbilityReady(Ability.TigerPalm, timeShift);
local _TeachingsoftheMonastery_BUFF, _TeachingsoftheMonastery_COUNT = ConRO:Aura(Buff.TeachingsoftheMonastery, timeShift);
local _TigersLust, _TigersLust_RDY = ConRO:AbilityReady(Ability.TigersLust, timeShift);
local _TouchofDeath, _TouchofDeath_RDY = ConRO:AbilityReady(Ability.TouchofDeath, timeShift);
local _Statue_texture = 620831;
local _JadeSerpentStatue_ACTIVE = false;
if tChosen[Ability.SummonJadeSerpentStatue.talentID] then
for slot = 1, 2 do
local found, _, _, _, texture = GetTotemInfo(slot)
if found and texture == _Statue_texture then
_JadeSerpentStatue_ACTIVE = true;
end
end
end
--Indicators
ConRO:AbilityInterrupt(_SpearHandStrike, _SpearHandStrike_RDY and ConRO:Interrupt());
ConRO:AbilityPurge(_ArcaneTorrent, _ArcaneTorrent_RDY and _target_in_melee and ConRO:Purgable());
ConRO:AbilityMovement(_Roll, _Roll_RDY and not tChosen[Ability.ChiTorpedo.talentID]);
ConRO:AbilityMovement(_ChiTorpedo, _ChiTorpedo_RDY and not _ChiTorpedo_BUFF);
ConRO:AbilityMovement(_TigersLust, _TigersLust_RDY);
ConRO:AbilityBurst(_ManaTea, _ManaTea_RDY and _ManaTeaLeaves_COUNT >= 3);
ConRO:AbilityRaidBuffs(_SummonJadeSerpentStatue, _SummonJadeSerpentStatue_RDY and not _JadeSerpentStatue_ACTIVE);
ConRO:AbilityRaidBuffs(_RenewingMist, _RenewingMist_RDY and not ConRO:OneBuff(Buff.RenewingMist));
--Rotations
repeat
while(true) do
if _is_Enemy then
if _TouchofDeath_RDY then
tinsert(ConRO.SuggestedSpells, _TouchofDeath);
_TouchofDeath_RDY = false;
_Queue = _Queue + 1;
break;
end
if _JadefireStomp_RDY and not _AncientTeachings_BUFF then
tinsert(ConRO.SuggestedSpells, _JadefireStomp);
_JadefireStomp_RDY = false;
_JadefireStomp_BUFF = true;
_AncientTeachings_BUFF = true;
_Queue = _Queue + 1;
break;
end
if _BlackoutKick_RDY and _JadefireStomp_BUFF and _enemies_in_melee >= 3 then
tinsert(ConRO.SuggestedSpells, _BlackoutKick);
_BlackoutKick_RDY = false;
_Queue = _Queue + 1;
break;
end
if _RisingSunKick_RDY and (tChosen[Ability.RisingMist.talentID] or (tChosen[Ability.RapidDiffusion.talentID] and not (ConRO:OneBuff(Buff.RenewingMist) or ConRO:OneBuff(Buff.EnvelopingMist)))) then
tinsert(ConRO.SuggestedSpells, _RisingSunKick);
_RisingSunKick_RDY = false;
_Queue = _Queue + 1;
break;
end
if _TigerPalm_RDY and not _BlackoutKick_RDY and (not _TeachingsoftheMonastery_BUFF or _TeachingsoftheMonastery_COUNT < 3) then
tinsert(ConRO.SuggestedSpells, _TigerPalm);
_TeachingsoftheMonastery_COUNT = _TeachingsoftheMonastery_COUNT + 1;
_Queue = _Queue + 1;
break;
end
if _SpinningCraneKick_RDY and _enemies_in_10yrds >= 5 then
tinsert(ConRO.SuggestedSpells, _SpinningCraneKick);
_Queue = _Queue + 1;
break;
end
if _JadefireStomp_RDY and not _JadefireStomp_BUFF then
tinsert(ConRO.SuggestedSpells, _JadefireStomp);
_JadefireStomp_RDY = false;
_JadefireStomp_BUFF = true;
_Queue = _Queue + 1;
break;
end
if _SpinningCraneKick_RDY and _enemies_in_10yrds >= 3 then
tinsert(ConRO.SuggestedSpells, _SpinningCraneKick);
_Queue = _Queue + 1;
break;
end
if _RisingSunKick_RDY then
tinsert(ConRO.SuggestedSpells, _RisingSunKick);
_RisingSunKick_RDY = false;
_Queue = _Queue + 1;
break;
end
if _SpinningCraneKick_RDY and not _RisingSunKick_RDY and _enemies_in_10yrds >= 2 then
tinsert(ConRO.SuggestedSpells, _SpinningCraneKick);
_Queue = _Queue + 1;
break;
end
if _BlackoutKick_RDY then
tinsert(ConRO.SuggestedSpells, _BlackoutKick);
_BlackoutKick_RDY = false;
_Queue = _Queue + 1;
break;
end
if _TigerPalm_RDY then
tinsert(ConRO.SuggestedSpells, _TigerPalm);
_Queue = _Queue + 1;
break;
end
end
tinsert(ConRO.SuggestedSpells, 289603); --Waiting Spell Icon
_Queue = _Queue + 3;
break;
end
until _Queue >= 3;
return nil;
end
function ConRO.Monk.MistweaverDef(_, timeShift, currentSpell, gcd, tChosen, pvpChosen)
wipe(ConRO.SuggestedDefSpells);
ConRO:Stats();
local Ability, Form, Buff, Debuff, PetAbility, PvPTalent = ids.Mw_Ability, ids.Mw_Form, ids.Mw_Buff, ids.Mw_Debuff, ids.Mw_PetAbility, ids.Mw_PvPTalent;
--Abilities
local _FortifyingBrew, _FortifyingBrew_RDY = ConRO:AbilityReady(Ability.FortifyingBrew, timeShift);
--Rotations
if _FortifyingBrew_RDY then
tinsert(ConRO.SuggestedDefSpells, _FortifyingBrew);
end
return nil;
end
function ConRO.Monk.Windwalker(_, timeShift, currentSpell, gcd, tChosen, pvpChosen)
wipe(ConRO.SuggestedSpells);
ConRO:Stats();
local Ability, Form, Buff, Debuff, PetAbility, PvPTalent = ids.Ww_Ability, ids.Ww_Form, ids.Ww_Buff, ids.Ww_Debuff, ids.Ww_PetAbility, ids.Ww_PvPTalent;
--Abilities
local _BlackoutKick, _BlackoutKick_RDY = ConRO:AbilityReady(Ability.BlackoutKick, timeShift);
local _BlackoutKick_BUFF = ConRO:Aura(Buff.BlackoutKick, timeShift);
local _, _TeachingsoftheMonastery_COUNT = ConRO:Aura(Buff.TeachingsoftheMonastery, timeShift);
local _CelestialConduit, _CelestialConduit_RDY = ConRO:AbilityReady(Ability.CelestialConduit, timeShift);
local _ChiBurst, _ChiBurst_RDY = ConRO:AbilityReady(Ability.ChiBurst, timeShift);
local _ChiEnergy_BUFF, _ChiEnergy_COUNT, _ChiEnergy_DUR = ConRO:Aura(Buff.ChiEnergy, timeShift);
local _ChiTorpedo, _ChiTorpedo_RDY = ConRO:AbilityReady(Ability.ChiTorpedo, timeShift);
local _ChiTorpedo_BUFF = ConRO:Aura(Buff.ChiTorpedo, timeShift);
local _CracklingJadeLightning, _CracklingJadeLightning_RDY = ConRO:AbilityReady(Ability.CracklingJadeLightning, timeShift);
local _, _CracklingJadeLightning_RANGE = ConRO:Targets(Ability.CracklingJadeLightning);
local _JadefireStomp, _JadefireStomp_RDY = ConRO:AbilityReady(Ability.JadefireStomp, timeShift);
local _FistsofFury, _FistsofFury_RDY, _FistsofFury_CD = ConRO:AbilityReady(Ability.FistsofFury, timeShift);
local _, _FistsofFury_RANGE = ConRO:Targets(Ability.FistsofFury);
local _FlyingSerpentKick, _FlyingSerpentKick_RDY = ConRO:AbilityReady(Ability.FlyingSerpentKick, timeShift);
local _InvokeXuentheWhiteTiger, _InvokeXuentheWhiteTiger_RDY = ConRO:AbilityReady(Ability.InvokeXuentheWhiteTiger, timeShift);
local _RisingSunKick, _RisingSunKick_RDY, _RisingSunKick_CD = ConRO:AbilityReady(Ability.RisingSunKick, timeShift);
local _Roll, _Roll_RDY = ConRO:AbilityReady(Ability.Roll, timeShift);
local _SpearHandStrike, _SpearHandStrike_RDY = ConRO:AbilityReady(Ability.SpearHandStrike, timeShift);
local _SpinningCraneKick, _SpinningCraneKick_RDY = ConRO:AbilityReady(Ability.SpinningCraneKick, timeShift);
local _, _DanceofChiJi_COUNT = ConRO:Aura(Buff.DanceofChiJi, timeShift);
local _MarkoftheCrane_DEBUFF = ConRO:TargetAura(Debuff.MarkoftheCrane, timeShift);
local _, _TheEmperorsCapacitor_COUNT = ConRO:Form(Form.TheEmperorsCapacitor);
local _StormEarthandFire, _StormEarthandFire_RDY = ConRO:AbilityReady(Ability.StormEarthandFire, timeShift);
local _StormEarthandFire_BUFF = ConRO:Aura(Buff.StormEarthandFire, timeShift);
local _StormEarthandFire_CHARGES, _StormEarthandFire_MaxCHARGES = ConRO:SpellCharges(_StormEarthandFire);
local _StrikeoftheWindlord, _StrikeoftheWindlord_RDY = ConRO:AbilityReady(Ability.StrikeoftheWindlord, timeShift);
local _TigerPalm, _TigerPalm_RDY = ConRO:AbilityReady(Ability.TigerPalm, timeShift);
local _TigersLust, _TigersLust_RDY = ConRO:AbilityReady(Ability.TigersLust, timeShift);
local _TouchofDeath, _TouchofDeath_RDY = ConRO:AbilityReady(Ability.TouchofDeath, timeShift);
local _WhirlingDragonPunch, _WhirlingDragonPunch_RDY, _WhirlingDragonPunch_CD = ConRO:AbilityReady(Ability.WhirlingDragonPunch, timeShift);
--Conditions
local _LastCombo = ConRO:ComboStrikes();
local _TigerPalm_COST = 60;
if tChosen[Ability.InnerPeace.talentID] then
_TigerPalm_COST = _TigerPalm_COST - 5;
end
local _TeachingsoftheMonastery_MAXCOUNT = 4;
if tChosen[Ability.KnowledgeoftheBrokenTemple.talentID] then
_TeachingsoftheMonastery_MAXCOUNT = 8;
end
--Indicators
ConRO:AbilityInterrupt(_SpearHandStrike, _SpearHandStrike_RDY and ConRO:Interrupt());
ConRO:AbilityPurge(_ArcaneTorrent, _ArcaneTorrent_RDY and _target_in_melee and ConRO:Purgable());
ConRO:AbilityMovement(_Roll, _Roll_RDY and not tChosen[Ability.ChiTorpedo.talentID]);
ConRO:AbilityMovement(_ChiTorpedo, _ChiTorpedo_RDY and not _ChiTorpedo_BUFF);
ConRO:AbilityMovement(_TigersLust, _TigersLust_RDY);
ConRO:AbilityMovement(_FlyingSerpentKick, _FlyingSerpentKick_RDY);
ConRO:AbilityBurst(_InvokeXuentheWhiteTiger, _InvokeXuentheWhiteTiger_RDY and ConRO:BurstMode(_InvokeXuentheWhiteTiger));
ConRO:AbilityBurst(_StormEarthandFire, _StormEarthandFire_RDY and not _StormEarthandFire_BUFF and ConRO:BurstMode(_StormEarthandFire, 90));
ConRO:AbilityBurst(_TouchofDeath, _TouchofDeath_RDY and ConRO:BurstMode(_TouchofDeath));
--Rotations
repeat
while(true) do
if select(8, UnitChannelInfo("player")) == _FistsofFury then -- Do not break cast
tinsert(ConRO.SuggestedSpells, _FistsofFury);
_Queue = _Queue + 1;
break;
end
if select(8, UnitChannelInfo("player")) == _CelestialConduit then -- Do not break cast
tinsert(ConRO.SuggestedSpells, _CelestialConduit);
_Queue = _Queue + 1;
break;
end
if _InvokeXuentheWhiteTiger_RDY and ConRO:FullMode(_InvokeXuentheWhiteTiger) then
tinsert(ConRO.SuggestedSpells, _InvokeXuentheWhiteTiger);
_InvokeXuentheWhiteTiger_RDY = false;
_Queue = _Queue + 1;
break;
end
if _StormEarthandFire_RDY and not _StormEarthandFire_BUFF and _LastCombo ~= _StormEarthandFire and ConRO:FullMode(_StormEarthandFire, 90) then
tinsert(ConRO.SuggestedSpells, _StormEarthandFire);
_StormEarthandFire_RDY = false;
_Queue = _Queue + 1;
break;
end
if _TouchofDeath_RDY and _LastCombo ~= _TouchofDeath and ConRO:FullMode(_TouchofDeath) then
tinsert(ConRO.SuggestedSpells, _TouchofDeath);
_TouchofDeath_RDY = false;
_Queue = _Queue + 1;
break;
end
if _TigerPalm_RDY and _Chi <= (_Chi_Max - 2) and _Energy >= _Energy_Max - 15 and _LastCombo ~= _TigerPalm then
tinsert(ConRO.SuggestedSpells, _TigerPalm);
_TigerPalm_RDY = false;
_Chi = _Chi + 2;
_Energy = _Energy - _TigerPalm_COST;
_Queue = _Queue + 1;
break;
end
if _SpinningCraneKick_RDY and _FistsofFury_RANGE and _DanceofChiJi_COUNT >= 2 and _LastCombo ~= _SpinningCraneKick and ((ConRO_AutoButton:IsVisible() and _enemies_in_melee >= 3) or ConRO_AoEButton:IsVisible()) then
tinsert(ConRO.SuggestedSpells, _SpinningCraneKick);
_SpinningCraneKick_RDY = false;
_DanceofChiJi_COUNT = _DanceofChiJi_COUNT - 1;
_Queue = _Queue + 1;
break;
end
if _RisingSunKick_RDY and _Chi >= 2 and _FistsofFury_CD > 0 and _WhirlingDragonPunch_CD <= 0 and _LastCombo ~= _RisingSunKick and ((ConRO_AutoButton:IsVisible() and _enemies_in_melee >= 3) or ConRO_AoEButton:IsVisible()) then
tinsert(ConRO.SuggestedSpells, _RisingSunKick);
_RisingSunKick_RDY = false;
_Chi = _Chi - 2;
_Queue = _Queue + 1;
break;
end
if _WhirlingDragonPunch_RDY and _FistsofFury_CD > 0 and _RisingSunKick_CD > 0 and _LastCombo ~= _WhirlingDragonPunch then
tinsert(ConRO.SuggestedSpells, _WhirlingDragonPunch);
_WhirlingDragonPunch_RDY = false;
_Queue = _Queue + 1;
break;
end
if _StrikeoftheWindlord_RDY and _Chi >= 2 and _LastCombo ~= _StrikeoftheWindlord then
tinsert(ConRO.SuggestedSpells, _StrikeoftheWindlord);
_StrikeoftheWindlord_RDY = false;
_Chi = _Chi - 2;
_Queue = _Queue + 1;
break;
end
if _CelestialConduit_RDY and _LastCombo ~= _CelestialConduit and ConRO:HeroSpec(HeroSpec.ConduitoftheCelestials) then
tinsert(ConRO.SuggestedSpells, _CelestialConduit);
_CelestialConduit_RDY = false;
_Queue = _Queue + 1;
break;
end
if _CracklingJadeLightning_RDY and _CracklingJadeLightning_RANGE and _TheEmperorsCapacitor_COUNT >= 18 and tChosen[Ability.PoweroftheThunderKing.talentID] and _LastCombo ~= _CracklingJadeLightning and ((ConRO_AutoButton:IsVisible() and _enemies_in_melee >= 3) or ConRO_AoEButton:IsVisible()) then
tinsert(ConRO.SuggestedSpells, _CracklingJadeLightning);
_TheEmperorsCapacitor_COUNT = 0;
_Queue = _Queue + 1;
break;
end
if _RisingSunKick_RDY and _Chi >= 2 and _LastCombo ~= _RisingSunKick and ((ConRO_AutoButton:IsVisible() and _enemies_in_melee <= 2) or ConRO_SingleButton:IsVisible() or _XuensBattlegear_BUFF) then
tinsert(ConRO.SuggestedSpells, _RisingSunKick);
_RisingSunKick_RDY = false;
_Chi = _Chi - 2;
_Queue = _Queue + 1;
break;
end
if _FistsofFury_RDY and _Chi >= 3 and _LastCombo ~= _FistsofFury then
tinsert(ConRO.SuggestedSpells, _FistsofFury);
_FistsofFury_RDY = false;
_Chi = _Chi - 3;
_Queue = _Queue + 1;
break;
end
if _BlackoutKick_RDY and _Chi >= 1 and _TeachingsoftheMonastery_COUNT >= _TeachingsoftheMonastery_MAXCOUNT - 1 and _LastCombo ~= _BlackoutKick then
tinsert(ConRO.SuggestedSpells, _BlackoutKick);
_BlackoutKick_RDY = false;
_Chi = _Chi - 1;
_Queue = _Queue + 1;
break;
end
if _JadefireStomp_RDY and _LastCombo ~= _JadefireStomp then
tinsert(ConRO.SuggestedSpells, _JadefireStomp);
_JadefireStomp_RDY = false;
_Queue = _Queue + 1;
break;
end
if _SpinningCraneKick_RDY and _LastCombo ~= _SpinningCraneKick and ((_FistsofFury_RANGE and _DanceofChiJi_COUNT >= 1) or (ConRO_AutoButton:IsVisible() and _enemies_in_melee >= 3) or ConRO_AoEButton:IsVisible()) then
tinsert(ConRO.SuggestedSpells, _SpinningCraneKick);
_SpinningCraneKick_RDY = false;
_DanceofChiJi_COUNT = _DanceofChiJi_COUNT - 1;
_Queue = _Queue + 1;
break;
end
if _ChiBurst_RDY and _CracklingJadeLightning_RANGE and currentSpell ~= _ChiBurst and _LastCombo ~= _ChiBurst then
tinsert(ConRO.SuggestedSpells, _ChiBurst);
_ChiBurst_RDY = false;
_Queue = _Queue + 1;
break;
end
if _BlackoutKick_RDY and _Chi >= 1 and _LastCombo ~= _BlackoutKick then
tinsert(ConRO.SuggestedSpells, _BlackoutKick);
_BlackoutKick_RDY = false;
_Chi = _Chi - 1;
_Queue = _Queue + 1;
break;
end
if _CracklingJadeLightning_RDY and _CracklingJadeLightning_RANGE and _TheEmperorsCapacitor_COUNT >= 18 and _LastCombo ~= _CracklingJadeLightning then
tinsert(ConRO.SuggestedSpells, _CracklingJadeLightning);
_TheEmperorsCapacitor_COUNT = 0;
_Queue = _Queue + 1;
break;
end
tinsert(ConRO.SuggestedSpells, 289603); --Waiting Spell Icon
_Queue = _Queue + 3;
break;
end
until _Queue >= 3;
return nil;
end
function ConRO.Monk.WindwalkerDef(_, timeShift, currentSpell, gcd, tChosen, pvpChosen)
wipe(ConRO.SuggestedDefSpells);
ConRO:Stats();
local Ability, Form, Buff, Debuff, PetAbility, PvPTalent = ids.Ww_Ability, ids.Ww_Form, ids.Ww_Buff, ids.Ww_Debuff, ids.Ww_PetAbility, ids.Ww_PvPTalent;
--Abilities
local _ExpelHarm, _ExpelHarm_RDY = ConRO:AbilityReady(Ability.ExpelHarm, timeShift);
local _FortifyingBrew, _FortifyingBrew_RDY = ConRO:AbilityReady(Ability.FortifyingBrew, timeShift);
local _TouchofKarma, _TouchofKarma_RDY = ConRO:AbilityReady(Ability.TouchofKarma, timeShift);
local _Vivify, _Vivify_RDY = ConRO:AbilityReady(Ability.Vivify, timeShift);
local _VivacousVivification_BUFF = ConRO:Aura(Buff.VivacousVivification, timeShift);
--Conditions
if tChosen[Ability.CombatWisdom.talentID] then
_ExpelHarm_RDY = false;
end
--Rotations
if _ExpelHarm_RDY and _Player_Percent_Health <= 50 then
tinsert(ConRO.SuggestedDefSpells, _ExpelHarm);
end
if _Vivify_RDY and _VivacousVivification_BUFF and _Player_Percent_Health <= 75 then
tinsert(ConRO.SuggestedDefSpells, _Vivify);
end
if _TouchofKarma_RDY then
tinsert(ConRO.SuggestedDefSpells, _TouchofKarma);
end
if _FortifyingBrew_RDY then
tinsert(ConRO.SuggestedDefSpells, _FortifyingBrew);
end
return nil;
end
local lastCombo = 0;
function ConRO:ComboStrikes()
local spellList = {
ids.Ww_Ability.TigerPalm.spellID,
ids.Ww_Ability.BlackoutKick.spellID,
ids.Ww_Ability.RisingSunKick.spellID,
ids.Ww_Ability.FistsofFury.spellID,
ids.Ww_Ability.SpinningCraneKick.spellID,
ids.Ww_Ability.WhirlingDragonPunch.spellID,
ids.Ww_Ability.ChiBurst.spellID,
ids.Ww_Ability.CracklingJadeLightning.spellID,
ids.Ww_Ability.StrikeoftheWindlord.spellID,
148187,
ids.Ww_Ability.TouchofDeath.spellID,
ids.Ww_Ability.JadefireStomp.spellID,
ids.Ww_Ability.StormEarthandFire.spellID,
ids.Ww_Ability.CelestialConduit.spellID,
}
for _, v in ipairs(spellList) do
if ConRO.lastSpellId == v then
lastCombo = v;
end
end
return lastCombo;
end