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
Copy file name to clipboardExpand all lines: System/API/CD.lua
+46-34
Original file line number
Diff line number
Diff line change
@@ -3,19 +3,24 @@
3
3
-- CD functions are stored in br.player.cd and can be utilized by `local cd = br.player.cd` in your profile.
4
4
-- For spell CDs, `spell` in the function represent the name in the actions list (Spec, Shared Class, Shared Global Lists) defined in System/List/Spells.lua
5
5
-- For item CDs, `item` in the function represent the name in the item list defined in System/List/Items.lua
6
+
-- For slot CDs, `slot` in the function represents equipement slots, pass the ID matching the equipement slot id you wish to check.
6
7
-- @module br.player.cd
7
8
local_, br=...
8
9
9
10
ifbr.api==nilthenbr.api= {} end
10
11
11
12
br.api.cd=function(self,spell,id)
12
-
ifself.cd==nilthenself.cd= {} end
13
-
ifself.cd[spell] ==nilthenself.cd[spell] = {} end
13
+
self.cd=self.cdor {}
14
14
localcd=self.cd
15
15
16
+
--- Spell Cooldown Functions - [spell] denotes placeholder for name of spell listed in System/Lists/Spells.lua
Copy file name to clipboardExpand all lines: System/API/Enemies.lua
+3-2
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ local function setVariable(self,unit,range,checkNoCombat,facing,type,table,count
34
34
-- Build enemies.yards variable
35
35
localinsertTable="yards"..range..type-- Ex: enemies.yards8 (returns all enemies around player in 8yrds), Adds Table Type (r for Rect, c for Cone, blank for Normal)
36
36
ifunit~="player" then
37
-
-- letter tag on end based on type of unit passed, if target or enemy unit then "t" otherwise first letter of what is passed in: f - "focus", p - "pet", m - "mouseover", etc
37
+
-- letter tag on end based on type of unit passed, if target or enemy unit then "t" otherwise first letter of what is passed in: f - "focus", p - "pet", m - "mouseover", etc
38
38
ifbr.units[unit] ~=nilthen
39
39
insertTable=insertTable.."t" -- Ex: enemies.yards8t (returns all enemies around target in 8yrds)
40
40
else
@@ -47,7 +47,8 @@ local function setVariable(self,unit,range,checkNoCombat,facing,type,table,count
47
47
ifcount>0thenbr.insertTableIntoTable(self.enemies[insertTable],table) end
0 commit comments