You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- BR API Locals - Many of these are located from System/API, this is a sample of commonly used ones but no all inclusive
108
+
localbuff
109
+
localdebuff
110
+
localcast
111
+
localcd
112
+
localcharges
113
+
localenemies
114
+
localmodule
115
+
localpower
116
+
localtalent
117
+
localui
118
+
localunit
119
+
localunits
120
+
localvar
121
+
122
+
-- Any variables/functions made should have a local here to prevent possible conflicts with other things.
123
+
124
+
125
+
-----------------
126
+
--- Functions --- -- List all profile specific custom functions here
127
+
-----------------
128
+
129
+
localactionList= {}
130
+
actionList.Extra=function()
131
+
end
132
+
actionList.Defensive=function()
133
+
end
134
+
actionList.Interrupt=function()
135
+
end
136
+
actionList.Cooldown=function()
137
+
end
138
+
actionList.PreCombat=function()
139
+
ifnotunit.inCombat() andnot (unit.flying() orunit.mounted() orunit.taxi()) then-- Only run when not in combat and not flying/mounted/taxi
140
+
ifunit.valid("target") then
141
+
-- Start Attack
142
+
ifunit.distance("target") <=40then
143
+
br._G.PetAttack("target")
144
+
ifnotbr._G.IsAutoRepeatSpell(br._G.GetSpellInfo(75)) andunit.exists("target") then
145
+
br._G.StartAttack("target")
146
+
end
147
+
end
148
+
end
149
+
end
150
+
end
151
+
152
+
----------------
153
+
--- ROTATION ---
154
+
----------------
155
+
localfunctionrunRotation() -- This is the main profile loop, any below this point is ran every cycle, everything above is ran only once during initialization.
-- BR API Locals - These are the same as the locals above just defined for use.
167
+
buff=br.player.buff
168
+
debuff=br.player.debuff
169
+
cast=br.player.cast
170
+
cd=br.player.cd
171
+
charges=br.player.charges
172
+
enemies=br.player.enemies
173
+
module=br.player.module
174
+
power=br.player.power
175
+
talent=br.player.talent
176
+
ui=br.player.ui
177
+
unit=br.player.unit
178
+
units=br.player.units
179
+
var=br.player.variables
180
+
181
+
units.get(5) -- Makes a variable called, units.dyn5
182
+
units.get(40) -- Makes a variable called, units.dyn40
183
+
enemies.get(5) -- Makes a varaible called, enemies.yards5
184
+
enemies.get(40) -- Makes a varaible called, enemies.yards40
185
+
enemies.get(5,"player",false,true) -- makes enemies.yards5f
186
+
enemies.get(10,"player",false, true)
187
+
enemies.get(20,"player",false,true)
188
+
enemies.get(30,"player",false,true)
189
+
enemies.get(40,"player",false,true)
190
+
191
+
------------------------
192
+
--- Custom Variables ---
193
+
------------------------
194
+
-- Any other local varaible from above would also need to be defined here to be use.
195
+
ifvar.profileStop==nilthenvar.profileStop=falseend-- Trigger variable to help when needing to stop a profile.
196
+
197
+
198
+
199
+
--if actionList.PetManagement() then return true end
200
+
---------------------
201
+
--- Begin Profile ---
202
+
---------------------
203
+
-- Profile Stop | Pause
204
+
ifnotunit.inCombat() andnotunit.exists("target") andvar.profileStopthen-- Reset profile stop once stopped
205
+
var.profileStop=false
206
+
elseif (unit.inCombat() andvar.profileStop) orui.pause() orunit.mounted() orunit.flying() orui.mode.rotation==4then-- If profile triggered to stop go here until it has.
0 commit comments