Mark ClassicAPI as required

ClassicAPI is now a hard requirement: bump it to Required in the Home
requirements table, drop the per-row "ClassicAPI" Addon tags from the
dispel conditionals (now a base requirement), set [moving] to "speed %",
and remove the "without ClassicAPI degrades gracefully" note.
Brues
2026-06-20 23:47:37 -05:00
parent bae44c6121
commit e73db5498c
2 changed files with 10 additions and 12 deletions
+9 -11
@@ -35,7 +35,7 @@ These always evaluate against the player. Cannot be redirected with `@unit`.
| `lastswing` | Player melee swing type/timing | ✅ | ✅ | `[lastswing:dodge]` `[lastswing:<2]` | v2.24 | |
| `mhimbue` | Main hand has temporary imbue | ✅ | ✅ | `[mhimbue:Instant_Poison<300]` `[mhimbue:>#5]` | | |
| `mod` | Modifier key pressed | ✅ | ✅ | `[mod:alt/ctrl]` | | |
| `moving` | Moving / speed % | ✅ | ✅ | `[moving]` `[moving:>100&<200]` | | MonkeySpeed (speed %) |
| `moving` | Moving / speed % | ✅ | ✅ | `[moving]` `[moving:>100&<200]` | | speed % |
| `mybuff` | Player has buff (with time/stacks) | ✅ | ✅ | `[mybuff:Thorns<5]` `[nomybuff:MotW/GotW]` | | |
| `mybuffcapped` | Player buff bar full (32) | ✅ | — | `[nomybuffcapped]` | v2.20 | |
| `mybuffcount` | Player buff slot count (32 max) | ✅ | ✅ | `[mybuffcount:>15]` `[nomybuffcount:>28]` | | |
@@ -87,14 +87,14 @@ These default to checking the current target. Most can be redirected with `@unit
| `cc` | Target has CC effect | ✅ | ✅ | `[cc:stun/fear]` `[nocc:polymorph]` | | |
| `channeltime` | Target channel time remaining (seconds) | ✅ | ✅ | `[channeltime:<0.5]` | | |
| `class` | Target class (players only) | ✅ | ✅ | `[class:Warrior/Priest]` | | |
| `curse` | Target has a Curse debuff | ✅ | — | `[curse]` `[@focus,curse]` | | ClassicAPI |
| `curse` | Target has a Curse debuff | ✅ | — | `[curse]` `[@focus,curse]` | | |
| `cursive` | GUID-based debuff tracking (time remaining) | ✅ | ✅ | `[cursive:Rake<3]` `[nocursive:Rip]` | | Cursive |
| `dead` | Unit is dead | ✅ | — | `[dead]` | | |
| `debuff` | Target has debuff (with time/stacks/rank) | ✅ | ✅ | `[debuff:Moonfire<4]` `[nodebuff:Rake]` `[debuff:Moonfire(Rank_10)]` | | |
| `debuffcapped` | Target debuff bar full | ✅ | — | `[nodebuffcapped]` | v2.20 | |
| `disease` | Target has a Disease debuff | ✅ | — | `[disease]` `[@party1,disease]` | | ClassicAPI |
| `dispellable` | Target has any dispellable debuff | ✅ | — | `[dispellable]` | | ClassicAPI |
| `dispellablebuff` | Target has any dispellable buff (offensive) | ✅ | — | `[harm,dispellablebuff]` | | ClassicAPI |
| `disease` | Target has a Disease debuff | ✅ | — | `[disease]` `[@party1,disease]` | | |
| `dispellable` | Target has any dispellable debuff | ✅ | — | `[dispellable]` | | |
| `dispellablebuff` | Target has any dispellable buff (offensive) | ✅ | — | `[harm,dispellablebuff]` | | |
| `distance` | Distance in yards / count within range | ✅ | ✅ | `[distance:<40]` `[distance:30>1]` `[distance:30:facing>1]` | | UnitXP_SP3 |
| `exists` | Unit exists | ✅ | — | `[@mouseover,exists]` | | |
| `facing` | Facing target / count facing | ✅ | ✅ | `[facing]` `[facing:>2]` `[facing:meleerange>1]` | | UnitXP_SP3 |
@@ -109,8 +109,8 @@ These default to checking the current target. Most can be redirected with `@unit
| `isplayer` | Unit is a player | ✅ | — | `[isplayer]` | | |
| `istank` | Unit is marked as tank | ✅ | — | `[istank]` `[@focus,istank]` | | pfUI |
| `level` | Target level (skull = 63) | — | ✅ | `[level:>60]` | | |
| `magic` | Target has a Magic debuff | ✅ | — | `[magic]` `[@focus,magic]` | | ClassicAPI |
| `magicbuff` | Target has a dispellable Magic buff (offensive) | ✅ | — | `[harm,magicbuff]` | | ClassicAPI |
| `magic` | Target has a Magic debuff | ✅ | — | `[magic]` `[@focus,magic]` | | |
| `magicbuff` | Target has a dispellable Magic buff (offensive) | ✅ | — | `[harm,magicbuff]` | | |
| `meleerange` | In melee range / count in melee | ✅ | ✅ | `[meleerange]` `[meleerange:>1]` `[meleerange:facing>1]` | | UnitXP_SP3 |
| `member` | Target is in party or raid | ✅ | — | `[member]` | | |
| `multiscan` | Scan enemies by priority, soft-cast | — | ✅ | `[multiscan:nearest]` `[multiscan:skull]` | | UnitXP_SP3 |
@@ -119,7 +119,7 @@ These default to checking the current target. Most can be redirected with `@unit
| `othertag` | Target is tapped by someone else | ✅ | — | `[othertag]` `[noothertag]` | | |
| `outrange` | Out of spell range / count out | ✅ | ✅ | `[outrange:Charge]` `[outrange:Charge>0]` | | UnitXP_SP3 (count) |
| `party` | Unit is in your party | ✅ | ✅ | `[party]` `[party:focus]` | | |
| `poison` | Target has a Poison debuff | ✅ | — | `[poison]` `[@party1,poison]` | | ClassicAPI |
| `poison` | Target has a Poison debuff | ✅ | — | `[poison]` `[@party1,poison]` | | |
| `power` | Target mana/rage/energy % | — | ✅ | `[power:<30]` | | |
| `powerlost` | Target power deficit | — | ✅ | `[powerlost:>100]` | | |
| `powertype` | Target power type | ✅ | ✅ | `[powertype:mana/rage]` | | |
@@ -136,13 +136,11 @@ These default to checking the current target. Most can be redirected with `@unit
## Dispel-Type Conditionals (ClassicAPI)
`magic`, `curse`, `disease`, `poison`, and `dispellable` detect the **dispel type** of a unit's auras — something vanilla can't normally read. They require the [ClassicAPI](https://github.com/brues-code/ClassicAPI) client mod (which exposes `C_UnitAuras`). They are no-argument booleans, default to `@target`, and can be redirected with `@unit`.
`magic`, `curse`, `disease`, `poison`, and `dispellable` detect the **dispel type** of a unit's auras — something vanilla can't normally read, which is why [ClassicAPI](https://github.com/brues-code/ClassicAPI) (`C_UnitAuras`) is a requirement of this addon. They are no-argument booleans, default to `@target`, and can be redirected with `@unit`.
- **Debuff side (defensive cleanse):** `magic` / `curse` / `disease` / `poison` are true when the unit has a **harmful** aura of that dispel type. `dispellable` is true when the unit has any dispel-typed debuff.
- **Buff side (offensive dispel / strip):** `magicbuff` and `dispellablebuff` check the unit's **buffs** instead — use these to detect an enemy buff you can remove (e.g. Dispel Magic / Purge). 1.12 offensive dispel only removes Magic, so `magicbuff` is the practical one.
**Without ClassicAPI** these degrade gracefully: the positive form returns false and the `no` form returns true (vanilla can't read dispel types), so a `[magic]` clause simply won't fire rather than erroring.
> **Note:** `dispellable` is class-agnostic — it's true for *any* dispel type, including ones your class can't remove. On a class with limited dispels (e.g. a Priest, who can only clear Magic and Disease) use the specific `magic` / `disease` keywords rather than `dispellable`.
```lua
+1 -1
@@ -8,7 +8,7 @@ Enhanced macro addon for World of Warcraft 1.12.1 (Vanilla/Turtle WoW) with dyna
|-----|:--------:|---------|
| [Nampower](https://github.com/brues-code/nampower/releases) (v3.0.0+) | ✅ | Spell queueing, DBC data, auto-attack events |
| [UnitXP_SP3](https://codeberg.org/konaka/UnitXP_SP3/releases) | ✅ | Distance checks, `[multiscan]` enemy scanning |
| [ClassicAPI](https://github.com/brues-code/ClassicAPI/releases) | Optional | Dispel-type conditionals (`[magic]`, `[curse]`, `[disease]`, `[poison]`, `[dispellable]`, `[magicbuff]`) |
| [ClassicAPI](https://github.com/brues-code/ClassicAPI/releases) | ✅ | Modern `C_*` API: dispel-type conditionals (`[magic]`, `[curse]`, …), `[moving]` speed |
## Installation