Skip to content

Commit 856f614

Browse files
committed
System - Reorganization
1 parent fa9af89 commit 856f614

File tree

133 files changed

+5151
-4720
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+5151
-4720
lines changed

BadRotations API.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,54 +13,54 @@
1313

1414
---
1515

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
1818
**CAN - Booleans**
1919

2020
---
2121

2222
`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
2424
`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
2626
`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
2929
**CAST - Function Methods**
3030

3131
---
3232

3333
`castGround(Unit,SpellID,maxDistance)` Used to cast Spells on ground. Returns true if everything passes.
3434
`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.
3636
[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.
3737
**GET - Mixed**
3838

3939
---
4040

4141
`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.
4545
`getCreatureType(Unit) - Bool` Returns true if Unit is not a pet battle or a totem.
4646
`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
5252
`getFallTime() - Num` Returns the time the character has been falling.
5353
`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
5757
`getMana(Unit) - Num` Returns Unit Mana %
5858
`getNumEnemies(Target,Radius) - Num` Returns number of Enemies found within Radius of the target
5959
`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
6262
`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
6464
`getTimeToDie(unit) - Num` Returns approximative Time To Die for Unit
6565
`getTimeToMax(Unit) - Num` Returns how long it will take until our ressources are maxed
6666
`getTotemDistance(Unit1) - Num` Returns distance from totem to target
@@ -74,18 +74,18 @@
7474

7575
---
7676

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
7979
`isBuffed(UnitID,SpellID,TimeLeft) - Bool` Rturns true if Unit have at least Timeleft remaining on SpellId Buff
8080
`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
8383
`isEnnemy(Unit) - Bool` Returns true if we can attack the Unit
8484
`isGarrMCd(Unit) - Bool` Returns true if Unit if affected by Garrosh MC
8585
`isInCombat(Unit) - Bool` Returns true if Unit is in combat
8686
`isInMelee(Unit) - Bool` Returns true if we are withing 4 yard of the Unit
8787
`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)
8989
`isLooting() - Bool` Returns true if we are currently looting
9090
`isMoving(Unit) - Num` Returns Unit movement speed
9191
`IsMovingTime(time) - Bool` Returns true if we have been moving for time seconds
@@ -95,19 +95,19 @@
9595

9696
---
9797

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
9999
`nDbDmg(tar, spellID, player) - Num` Returns tooltip damage
100100
`pause() - Bool` Returns true if pause is engaged
101101
`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
103103
`shouldStopCasting(SpellID) - Bool` Built into casts methods. Prevents spell locking.
104104
**Config Queries - Mixed**
105105

106106
---
107107

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
109109
`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
111111
`CreateNewCheck(value, textString, tip1, state)`
112112

113113
- Used to create checkboxes in UI

0 commit comments

Comments
 (0)