mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 01:46:03 +00:00
ff29e9d3c2
Replace the localized L["totems"] / L["critters"] name-substring matching with ClassicAPI's UnitCreatureTypeID (CreatureType.dbc: 8 = Critter, 11 = Totem), cached per plate and reset on reuse. Locale-independent, covers custom/Turtle units, rejects mobs merely named "...Totem...", and cheaper than the per-plate name loop. Totem icons now come straight from the game instead of a hand-picked table: passive totems self-cast their provided buff, so their single aura's icon is read via C_UnitAuras.GetUnitAuras; active totems (Searing/Magma/Fire Nova) carry no self-aura, so their icon is captured from UNIT_SPELLCAST_SUCCEEDED (C_Spell.GetSpellTexture) and cached. Detection and icons read through the plate's ClassicAPI-provided GUID (cachedGuid).