Remove Dispel-Type Conditionals section

Brues
2026-07-27 18:48:06 -05:00
parent 5563b70c6f
commit cfab8577e6
-20
@@ -137,26 +137,6 @@ These default to checking the current target. Most can be redirected with `@unit
| `ttk` | Time to kill target (seconds) | ✅ | ✅ | `[ttk:<10]` | | TimeToKill |
| `type` | Creature type | ✅ | ✅ | `[type:Undead/Beast]` | | |
## 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, 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.
> **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
-- Priest: Dispel Magic on yourself, else friendly target's magic, else strip an enemy's magic buff
/cast [@player,magic] Dispel Magic; [help,magic] Dispel Magic; [harm,magicbuff] Dispel Magic
-- Druid: decurse / depoison your target or focus
/cast [curse] Remove Curse; [poison] Cure Poison; [@focus,curse] Remove Curse
-- Paladin: one-button Cleanse covering all three types it can remove
/cast [magic] Cleanse; [disease] Cleanse; [poison] Cleanse
```
## Extended Unit Tokens (Nampower v2.41+)
With Nampower v2.41+, all `[@unit]` redirects support additional token formats beyond standard tokens: