/
Rogue-Subtlety-Zanrub.cs
212 lines (183 loc) · 9.41 KB
/
Rogue-Subtlety-Zanrub.cs
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
using System.Drawing;
using System.Windows.Forms;
using Frozen.Helpers;
namespace Frozen.Rotation
{
public class Rogue : CombatRoutine
{
public override Form SettingsForm { get; set; }
public override void Initialize()
{
Log.Write("Welcome to Rogue-Subtlety", Color.Green);
Log.Write("Suggested build: http://www.wowhead.com/talent-calc/rogue/subtlety/cTIz");
}
public override void Stop()
{
}
public override void Pulse()
{
if (combatRoutine.Type == RotationType.SingleTarget) // Do Single Target Stuff here
if (WoW.HasTarget && WoW.TargetIsEnemy && WoW.IsInCombat)
{
if (WoW.PlayerHasBuff("Stealth") || WoW.PlayerHasBuff("Subterfuge") || WoW.PlayerHasBuff("Shadow Dance"))
{
if (WoW.CanCast("Symbols of Death") && WoW.Energy >= 35 &&
(!WoW.PlayerHasBuff("Symbols of Death") || WoW.PlayerBuffTimeRemaining("Symbols of Death") <= 10))
{
WoW.CastSpell("Symbols of Death");
return;
}
if (WoW.CanCast("Nightblade") && WoW.CurrentComboPoints >= 5 && WoW.Energy >= 25 &&
(!WoW.TargetHasDebuff("Nightblade") || WoW.TargetDebuffTimeRemaining("Nightblade") <= 4) && WoW.IsSpellInRange("Nightblade"))
{
WoW.CastSpell("Nightblade");
return;
}
if (WoW.CanCast("Eviscerate") && WoW.CurrentComboPoints >= 5 && WoW.Energy >= 35 && WoW.TargetHasDebuff("Nightblade") &&
WoW.IsSpellInRange("Eviscerate"))
{
WoW.CastSpell("Eviscerate");
return;
}
if (WoW.CanCast("Shadowstrike") && WoW.CurrentComboPoints < 6 && WoW.Energy >= 40 && WoW.IsSpellInRange("Shadowstrike"))
{
WoW.CastSpell("Shadowstrike");
return;
}
}
if (WoW.CanCast("Shadow Blades") && WoW.HasTarget && WoW.PlayerHasBuff("Symbols of Death") && WoW.IsSpellInRange("Eviscerate"))
{
WoW.CastSpell("Shadow Blades");
return;
}
if (WoW.CanCast("Shadow Dance") &&
(!WoW.PlayerHasBuff("Stealth") || !WoW.PlayerHasBuff("Shadow Dance") || !WoW.PlayerHasBuff("Subterfuge")) && WoW.Energy >= 55 &&
(WoW.PlayerSpellCharges("Shadow Dance") == 3 && WoW.CurrentComboPoints <= 3 ||
WoW.PlayerSpellCharges("Shadow Dance") == 2 && WoW.CurrentComboPoints <= 1) &&
WoW.IsSpellInRange("Eviscerate"))
{
WoW.CastSpell("Shadow Dance");
return;
}
if (WoW.CanCast("Goremaw's Bite") && WoW.CurrentComboPoints <= 2 && WoW.Energy <= 50 && WoW.IsSpellInRange("Goremaw's Bite") &&
WoW.IsSpellInRange("Eviscerate"))
{
WoW.CastSpell("Goremaw's Bite");
return;
}
if (WoW.CanCast("Nightblade") && WoW.CurrentComboPoints >= 5 && WoW.Energy >= 25 &&
(!WoW.TargetHasDebuff("Nightblade") || WoW.TargetDebuffTimeRemaining("Nightblade") <= 4) &&
WoW.IsSpellInRange("Eviscerate"))
{
WoW.CastSpell("Nightblade");
return;
}
if (WoW.CanCast("Eviscerate") && WoW.CurrentComboPoints >= 5 && WoW.Energy >= 35 && WoW.TargetHasDebuff("Nightblade") &&
WoW.IsSpellInRange("Eviscerate"))
{
WoW.CastSpell("Eviscerate");
return;
}
if (WoW.CanCast("Backstab") && WoW.CurrentComboPoints < 6 && WoW.Energy >= 55 && WoW.IsSpellInRange("Eviscerate"))
{
WoW.CastSpell("Backstab");
return;
}
}
if (combatRoutine.Type == RotationType.AOE || combatRoutine.Type == RotationType.Cleave) // Do AoE Target Stuff here
if ((WoW.HasTarget || UseCooldowns) && WoW.TargetIsEnemy && WoW.IsInCombat)
{
if (WoW.PlayerHasBuff("Stealth") || WoW.PlayerHasBuff("Subterfuge") || WoW.PlayerHasBuff("Shadow Dance"))
{
if (WoW.CanCast("Symbols of Death") && WoW.Energy >= 35 &&
(!WoW.PlayerHasBuff("Symbols of Death") || WoW.PlayerBuffTimeRemaining("Symbols of Death") <= 10))
{
WoW.CastSpell("Symbols of Death");
return;
}
if (WoW.CanCast("Nightblade") && WoW.CurrentComboPoints >= 5 && WoW.Energy >= 25 &&
(!WoW.TargetHasDebuff("Nightblade") || WoW.TargetDebuffTimeRemaining("Nightblade") <= 4) && WoW.IsSpellInRange("Nightblade"))
{
WoW.CastSpell("Nightblade");
return;
}
if (WoW.CanCast("Eviscerate") && WoW.CurrentComboPoints >= 5 && WoW.Energy >= 35 && WoW.TargetHasDebuff("Nightblade") &&
WoW.IsSpellInRange("Eviscerate"))
{
WoW.CastSpell("Eviscerate");
return;
}
if (WoW.CanCast("Shadowstrike") && WoW.CurrentComboPoints < 6 && WoW.Energy >= 40 && WoW.IsSpellInRange("Shadowstrike"))
{
WoW.CastSpell("Shadowstrike");
return;
}
if (WoW.CanCast("Shuriken Storm") && WoW.CurrentComboPoints < 6 && WoW.Energy >= 35 && WoW.IsSpellInRange("Eviscerate"))
{
WoW.CastSpell("Shuriken Storm");
return;
}
}
if (WoW.CanCast("Shadow Blades") && WoW.HasTarget && WoW.PlayerHasBuff("Symbols of Death") && WoW.IsSpellInRange("Eviscerate"))
{
WoW.CastSpell("Shadow Blades");
return;
}
if (WoW.CanCast("Shadow Dance") &&
(!WoW.PlayerHasBuff("Stealth") || !WoW.PlayerHasBuff("Shadow Dance") || !WoW.PlayerHasBuff("Subterfuge")) &&
(WoW.PlayerSpellCharges("Shadow Dance") == 3 && WoW.CurrentComboPoints <= 3 ||
WoW.PlayerSpellCharges("Shadow Dance") == 2 && WoW.CurrentComboPoints <= 1) &&
WoW.IsSpellInRange("Eviscerate"))
{
WoW.CastSpell("Shadow Dance");
return;
}
if (WoW.CanCast("Goremaw's Bite") && WoW.CurrentComboPoints <= 2 && WoW.Energy <= 50 && WoW.IsSpellInRange("Goremaw's Bite") &&
WoW.IsSpellInRange("Eviscerate"))
{
WoW.CastSpell("Goremaw's Bite");
return;
}
if (WoW.CanCast("Nightblade") && WoW.CurrentComboPoints >= 5 && WoW.Energy >= 25 &&
(!WoW.TargetHasDebuff("Nightblade") || WoW.TargetDebuffTimeRemaining("Nightblade") <= 4) &&
WoW.IsSpellInRange("Eviscerate"))
{
WoW.CastSpell("Nightblade");
return;
}
if (WoW.CanCast("Eviscerate") && WoW.CurrentComboPoints >= 5 && WoW.Energy >= 35 && WoW.TargetHasDebuff("Nightblade") &&
WoW.IsSpellInRange("Eviscerate"))
{
WoW.CastSpell("Eviscerate");
return;
}
if (WoW.CanCast("Shuriken Storm") && WoW.CurrentComboPoints < 6 && WoW.Energy >= 35 && WoW.IsSpellInRange("Eviscerate"))
WoW.CastSpell("Shuriken Storm");
}
}
}
}
/*
[AddonDetails.db]
AddonAuthor=Zanrub
AddonName=Frozen
WoWVersion=Legion - 70300
[SpellBook.db]
Spell,185438,Shadowstrike,D2
Spell,196819,Eviscerate,D3
Spell,212283,Symbols of Death,D1
Spell,195452,Nightblade,D4
Spell,137619,Marked for Death,D8
Spell,209782,Goremaw's Bite,F10
Spell,53,Backstab,D2
Spell,185313,Shadow Dance,F9
Spell,121471,Shadow Blades,F11
Spell,1856,Vanish,F12
Spell,197835,Shuriken Storm,F7
Aura,222018,Nightblade
Aura,121473,Shadow Blade
Aura,212283,Symbols of Death
Aura,1784,Stealth
Aura,108208,Subterfuge
Aura,185422,Shadow Dance
*/