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: BadRotations API.md
+42-16
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,24 @@
1
1
# Development Informations.
2
+
2
3
### The Macros
3
-
* /power ---- Start/Stop Badboy Entirely
4
-
* /aoe ------- Toggles AoE Modes
5
-
* /cooldowns -- Toggles Cooldowns
6
-
* /pause ---- Stop attacking
4
+
5
+
- /power ---- Start/Stop Badboy Entirely
6
+
- /aoe ------- Toggles AoE Modes
7
+
- /cooldowns -- Toggles Cooldowns
8
+
- /pause ---- Stop attacking
9
+
7
10
### The Functions.
11
+
8
12
**Old standar UnitBuff**
9
-
***
13
+
14
+
---
15
+
10
16
`br.UnitBuffID(UnitID, SpellID, Filter) - 1/nil` Returns 1 if Buff found on target
11
17
`br.UnitDebuffID(UnitID, SpellID, Filter) - 1/nil` Returns 1 if Debuff found on target
12
18
**CAN - Booleans**
13
-
***
19
+
20
+
---
21
+
14
22
`canAttack(Unit1,Unit2) - Bool` Returns true if Unit1 can attack Unit2
15
23
`br.canDispel(Unit,spellID) - Bool` Retruns true if the Unit have a valid Dispel
16
24
`canHeal(Unit) - Bool` Returns true if we can heal that Unit
@@ -19,13 +27,17 @@
19
27
`br.canRun() - Bool` Returns true if we can Run profile(incombat)
20
28
`br.canUseItem(itemID) - Bool` Returns true if the item can be used
21
29
**CAST - Function Methods**
22
-
***
30
+
31
+
---
32
+
23
33
`castGround(Unit,SpellID,maxDistance)` Used to cast Spells on ground. Returns true if everything passes.
24
34
`castGroundBetween(Unit,SpellID,maxDistance) ` Used to ground cast between yourself and target. Returns true if everything passes.
25
35
`castHealGround(SpellID,Radius,Health,NumberOfPlayers)` Used to ground cast between lowest br.friend members. Returns true if everything passes.
26
36
[castSpell(Unit,SpellID,FacingCheck,MovementCheck,SpamAllowed,KnownSkip)](https://github.com/CuteOne/BadRotations/wiki/castSpell-Method#castspell) Used to cast Spells. Returns true if everything passes.
27
37
**GET - Mixed**
28
-
***
38
+
39
+
---
40
+
29
41
`getAllies(Target,Radius) - Table` Returns a table of the allies found within Radius of the target
30
42
`br.getBuffRemain(Unit,BuffID) - Num` Returns how long remain on this Unit buff.
31
43
`br.getBuffStacks(Unit,BuffID) - Num` Returns number of stacks of this Units buff.
@@ -54,10 +66,14 @@
54
66
`getTotemDistance(Unit1) - Num` Returns distance from totem to target
55
67
`getVengeance() - Num` Returns player vengeance(considers classes)
56
68
**HAS**
57
-
***
69
+
70
+
---
71
+
58
72
`hasGlyph(glyphid)` Returns true if we have this Glyph
59
73
**IS - Booleans**
60
-
***
74
+
75
+
---
76
+
61
77
`br.isAlive(Unit) - Bool` Returns true if Unit is alive
62
78
`br.isBoss() - Bool` Returns true if a boss is found in boss 1-2-3-4-5
63
79
`isBuffed(UnitID,SpellID,TimeLeft) - Bool` Rturns true if Unit have at least Timeleft remaining on SpellId Buff
@@ -73,38 +89,48 @@
73
89
`isLooting() - Bool` Returns true if we are currently looting
74
90
`isMoving(Unit) - Num` Returns Unit movement speed
75
91
`IsMovingTime(time) - Bool` Returns true if we have been moving for time seconds
76
-
`isSpellInRange(SpellID,Unit) - Bool` Returns true spell is in Range of Unit
92
+
`C_Spell.IsSpellInRange(SpellID,Unit) - Bool` Returns true spell is in Range of Unit
77
93
`isValidTarget(Unit) - Bool` Returns true if the target is valid
78
94
**Uncategorized - Mixed**
79
-
***
95
+
96
+
---
97
+
80
98
`makeEnemiesTable()` - does not return anything but create br.enemy that hold br.enemy[i].unit br.enemy[i].distance and br.enemy[i].hp of all enemies in 40 yards
0 commit comments