mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-15 23:50:38 +00:00
UnitCastingInfo / CastingInfo / UnitChannelInfo / ChannelInfo were registered as globals (mirroring modern WoW), but that clobbers addons that ship their own vanilla cast-tracking via the `_G.UnitCastingInfo or <fallback>` idiom — notably ShaguTweaks' libcast.lua, which scrapes the combat log for remote/enemy casts the 1.12 engine never exposes. With our global present those addons adopt our player-only version and drop their (superior, for enemies) fallback, killing enemy cast bars. We can't match the combat-log scraper in the DLL (the engine carries no remote regular-cast data), so cede the global names and register under C_Spell instead. Tradeoff: addons calling the global UnitCastingInfo/UnitChannelInfo must use the C_Spell.-prefixed names now; enemy-cast consumers got nil from the global anyway.