mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
No-arg drop-current-form, polyfilling the modern singular. Walks the player's buff slots, scans each spell's Spell.dbc EffectApplyAuraName[3] at +0x16C and EffectMiscValue[3] at +0x1A8 for the SPELL_AURA_MOD_SHAPESHIFT (0x24) effect whose misc-value matches the current form byte, and sends CMSG_CANCEL_AURA via FUN_006E7040 for the owning spellID. Offsets validated against both 1.12's Script_CastShapeshiftForm (0x004B4810) — which does the same scan when re-toggling an active form — and 3.3.5's Script_CancelShapeshiftForm inner FUN_00726CE0. Vanilla's public Lua surface only exposes the index-based toggle via CastShapeshiftForm, forcing addons to know which bar slot the current form occupies before they can cancel it; the no-arg shape is a lot easier.