|
13 | 13 |
|
14 | 14 | --- |
15 | 15 |
|
16 | | -`br.UnitBuffID(UnitID, SpellID, Filter) - 1/nil` Returns 1 if Buff found on target |
17 | | -`br.UnitDebuffID(UnitID, SpellID, Filter) - 1/nil` Returns 1 if Debuff found on target |
| 16 | +`br.functions.aura:UnitBuffID(UnitID, SpellID, Filter) - 1/nil` Returns 1 if Buff found on target |
| 17 | +`br.functions.aura:UnitDebuffID(UnitID, SpellID, Filter) - 1/nil` Returns 1 if Debuff found on target |
18 | 18 | **CAN - Booleans** |
19 | 19 |
|
20 | 20 | --- |
21 | 21 |
|
22 | 22 | `canAttack(Unit1,Unit2) - Bool` Returns true if Unit1 can attack Unit2 |
23 | | -`br.canDispel(Unit,spellID) - Bool` Retruns true if the Unit have a valid Dispel |
| 23 | +`br.functions.aura:canDispel(Unit,spellID) - Bool` Retruns true if the Unit have a valid Dispel |
24 | 24 | `canHeal(Unit) - Bool` Returns true if we can heal that Unit |
25 | | -`br.canInterrupt(spellID,percentint) - Bool` Returns true if we can Interrupt that target |
| 25 | +`br.functions.spell:canInterrupt(spellID,percentint) - Bool` Returns true if we can Interrupt that target |
26 | 26 | `canPrepare() - Bool` Returns true if ready to buff(ooc) |
27 | | -`br.canRun() - Bool` Returns true if we can Run profile(incombat) |
28 | | -`br.canUseItem(itemID) - Bool` Returns true if the item can be used |
| 27 | +`br.functions.action:canRun() - Bool` Returns true if we can Run profile(incombat) |
| 28 | +`br.functions.item:canUseItem(itemID) - Bool` Returns true if the item can be used |
29 | 29 | **CAST - Function Methods** |
30 | 30 |
|
31 | 31 | --- |
32 | 32 |
|
33 | 33 | `castGround(Unit,SpellID,maxDistance)` Used to cast Spells on ground. Returns true if everything passes. |
34 | 34 | `castGroundBetween(Unit,SpellID,maxDistance) ` Used to ground cast between yourself and target. Returns true if everything passes. |
35 | | -`castHealGround(SpellID,Radius,Health,NumberOfPlayers)` Used to ground cast between lowest br.friend members. Returns true if everything passes. |
| 35 | +`castHealGround(SpellID,Radius,Health,NumberOfPlayers)` Used to ground cast between lowest br.engines.healingEngine.friend members. Returns true if everything passes. |
36 | 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. |
37 | 37 | **GET - Mixed** |
38 | 38 |
|
39 | 39 | --- |
40 | 40 |
|
41 | 41 | `getAllies(Target,Radius) - Table` Returns a table of the allies found within Radius of the target |
42 | | -`br.getBuffRemain(Unit,BuffID) - Num` Returns how long remain on this Unit buff. |
43 | | -`br.getBuffStacks(Unit,BuffID) - Num` Returns number of stacks of this Units buff. |
44 | | -`br.getCombatTime() - Num` Returns time since combat started. |
| 42 | +`br.functions.aura:getBuffRemain(Unit,BuffID) - Num` Returns how long remain on this Unit buff. |
| 43 | +`br.functions.aura:getBuffStacks(Unit,BuffID) - Num` Returns number of stacks of this Units buff. |
| 44 | +`br.functions.combat:getCombatTime() - Num` Returns time since combat started. |
45 | 45 | `getCreatureType(Unit) - Bool` Returns true if Unit is not a pet battle or a totem. |
46 | 46 | `getCombo() - Num` Returns combo points on current target. |
47 | | -`br.getDebuffRemain(Unit,DebuffID) - Num` Returns how long remain on this Units Debuff. |
48 | | -`br.getDebuffStacks(Unit,DebuffID) - Num` Returns number of stacks of this Units Debuff. |
49 | | -`br.getDistance(Unit1,Unit2) - Num` Returns distance to target in yards. |
50 | | -`br.getEnemies(Target,Radius) - Table` Returns a table of the Enemies found within Radius of the target |
51 | | -`br.getFacing(Unit1,Unit2) - Bool` Returns true if Unit1 is facing Unit2 |
| 47 | +`br.functions.aura:getDebuffRemain(Unit,DebuffID) - Num` Returns how long remain on this Units Debuff. |
| 48 | +`br.functions.aura:getDebuffStacks(Unit,DebuffID) - Num` Returns number of stacks of this Units Debuff. |
| 49 | +`br.functions.range:getDistance(Unit1,Unit2) - Num` Returns distance to target in yards. |
| 50 | +`br.engines.enemiesEngineFunctions:getEnemies(Target,Radius) - Table` Returns a table of the Enemies found within Radius of the target |
| 51 | +`br.functions.unit:getFacing(Unit1,Unit2) - Bool` Returns true if Unit1 is facing Unit2 |
52 | 52 | `getFallTime() - Num` Returns the time the character has been falling. |
53 | 53 | `getGround(Unit) - Bool` Returns true if ground is found under the target |
54 | | -`br.getHP(Unit) - Num` Returns Unit HP % |
55 | | -`br.getLineOfSight(Unit1,Unit2) - Bool` Returns true if the Unit1 can see Unit2 |
56 | | -`getLowAllies(Value) - Num` Returns number of units under Value HP in br.friend |
| 54 | +`br.functions.unit:getHP(Unit) - Num` Returns Unit HP % |
| 55 | +`br.functions.misc:getLineOfSight(Unit1,Unit2) - Bool` Returns true if the Unit1 can see Unit2 |
| 56 | +`getLowAllies(Value) - Num` Returns number of units under Value HP in br.engines.healingEngine.friend |
57 | 57 | `getMana(Unit) - Num` Returns Unit Mana % |
58 | 58 | `getNumEnemies(Target,Radius) - Num` Returns number of Enemies found within Radius of the target |
59 | 59 | `getPetLineOfSight(Unit) - Bool` Returns true if our pet is in sight of target |
60 | | -`br.getPower(Unit) - Num` Returns Unit Power % |
61 | | -`br.getRegen(Unit) - Num` Returns power regen rate of Unit |
| 60 | +`br.functions.power:getPower(Unit) - Num` Returns Unit Power % |
| 61 | +`br.functions.power:getRegen(Unit) - Num` Returns power regen rate of Unit |
62 | 62 | `round2(num, idp) - Num` Used to round numbers |
63 | | -`br.getSpellCD(SpellID) - Num` Returns how long remain until the CD is ready |
| 63 | +`br.functions.spell:getSpellCD(SpellID) - Num` Returns how long remain until the CD is ready |
64 | 64 | `getTimeToDie(unit) - Num` Returns approximative Time To Die for Unit |
65 | 65 | `getTimeToMax(Unit) - Num` Returns how long it will take until our ressources are maxed |
66 | 66 | `getTotemDistance(Unit1) - Num` Returns distance from totem to target |
|
74 | 74 |
|
75 | 75 | --- |
76 | 76 |
|
77 | | -`br.isAlive(Unit) - Bool` Returns true if Unit is alive |
78 | | -`br.isBoss() - Bool` Returns true if a boss is found in boss 1-2-3-4-5 |
| 77 | +`br.functions.unit:isAlive(Unit) - Bool` Returns true if Unit is alive |
| 78 | +`br.functions.unit:isBoss() - Bool` Returns true if a boss is found in boss 1-2-3-4-5 |
79 | 79 | `isBuffed(UnitID,SpellID,TimeLeft) - Bool` Rturns true if Unit have at least Timeleft remaining on SpellId Buff |
80 | 80 | `isCasting(SpellID,Unit) - Bool` Returns true if Unit is casting given spell |
81 | | -`br.isCastingSpell(spellID) - Bool` returns true if WE are casting spellid |
82 | | -`br.isDummy(Unit) - Bool` Returns true if Unit is a dummy |
| 81 | +`br.functions.cast:isCastingSpell(spellID) - Bool` returns true if WE are casting spellid |
| 82 | +`br.functions.unit:isDummy(Unit) - Bool` Returns true if Unit is a dummy |
83 | 83 | `isEnnemy(Unit) - Bool` Returns true if we can attack the Unit |
84 | 84 | `isGarrMCd(Unit) - Bool` Returns true if Unit if affected by Garrosh MC |
85 | 85 | `isInCombat(Unit) - Bool` Returns true if Unit is in combat |
86 | 86 | `isInMelee(Unit) - Bool` Returns true if we are withing 4 yard of the Unit |
87 | 87 | `isInPvP() - Bool` Returns true if we are in PvP |
88 | | -`br.isKnown(spellID) - Bool` Returns true if we know this spell(via spellbook check) |
| 88 | +`br.functions.spell:isKnown(spellID) - Bool` Returns true if we know this spell(via spellbook check) |
89 | 89 | `isLooting() - Bool` Returns true if we are currently looting |
90 | 90 | `isMoving(Unit) - Num` Returns Unit movement speed |
91 | 91 | `IsMovingTime(time) - Bool` Returns true if we have been moving for time seconds |
|
95 | 95 |
|
96 | 96 | --- |
97 | 97 |
|
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 |
| 98 | +`makeEnemiesTable()` - does not return anything but create br.engines.enemiesEngine.enemy that hold br.engines.enemiesEngine.enemy[i].unit br.engines.enemiesEngine.enemy[i].distance and br.engines.enemiesEngine.enemy[i].hp of all enemies in 40 yards |
99 | 99 | `nDbDmg(tar, spellID, player) - Num` Returns tooltip damage |
100 | 100 | `pause() - Bool` Returns true if pause is engaged |
101 | 101 | `castingUnit() - Bool` Returns true is said unit is casting. |
102 | | -`br.useItem(itemID)` Use item via ID |
| 102 | +`br.functions.item:useItem(itemID)` Use item via ID |
103 | 103 | `shouldStopCasting(SpellID) - Bool` Built into casts methods. Prevents spell locking. |
104 | 104 | **Config Queries - Mixed** |
105 | 105 |
|
106 | 106 | --- |
107 | 107 |
|
108 | | -`br.isChecked(Value) - Bool` Returns true if Value Checkbox is checked in UI |
| 108 | +`br.functions.misc:isChecked(Value) - Bool` Returns true if Value Checkbox is checked in UI |
109 | 109 | `isSelected(Value) - Bool` Returns true if Value Checkbox is checked in UI and CD requirements are met. |
110 | | -`br.getValue(Value) - Num` Returns drop or box Value from UI |
| 110 | +`br.functions.misc:getValue(Value) - Num` Returns drop or box Value from UI |
111 | 111 | `CreateNewCheck(value, textString, tip1, state)` |
112 | 112 |
|
113 | 113 | - Used to create checkboxes in UI |
|
0 commit comments