Files
ClassicAPI/docs
Brues ac45d56a43 feat(aura): attribute totem auras to the totem's owner
Every aura a totem applies now names the shaman who owns the totem as
its caster, so sourceUnit is "player" for your own totems' auras, on
you and on every group member in view. The server's caster is the
totem, so this is a ClassicAPI extension.

A unit is a totem when its UNIT_CREATED_BY_SPELL (+0x230) is a spell
with a SUMMON_TOTEM_SLOT1..4 effect (87-90); its owner is
UNIT_FIELD_CREATEDBY. The server stamps both on every totem and both are
broadcast, so other shamans' totems resolve too. Totem::Owner holds the
two lookups.

A party area aura (Strength of Earth, the resistance totems) reaches the
group with no packet that names the caster: the server copies it onto
each member itself. The totem keeps its own copy in a visible aura slot,
though, so the application hook (FUN_ON_AURA_ADDED, 0x6123F0) looks for
a visible totem that carries the same spell line (same ID, or same
localized name, since a low-level target gets a lower rank). The
target's own totem wins, then the nearest one. A stranger's group is not
visible to the client, so two groups' identical totems side by side are
told apart by distance only.

An aura a totem casts (Earthbind) arrives through SMSG_SPELL_GO with the
totem as caster. The aura store and its duration now use the owner (the
server applies the owner's duration mods to a totem's spells); the cast
events keep the totem.

The six modules that walked the object list each declared their own
typedefs for ClntObjMgrEnumObjects (0x468380). They now share
Object::ForEachVisible, which also gates on the object registry, since
the walker reads the object manager with no null check. The totem
effect IDs move to Offsets.h, and spell/Level.cpp drops its local copy
of SPELL_EFFECT_APPLY_AREA_AURA_PARTY.
2026-11-15 15:25:12 -06:00
..
2026-05-07 15:08:45 -05:00
2026-05-07 15:52:48 -05:00
2026-05-10 00:10:06 -05:00
2026-05-07 16:28:32 -05:00
2026-05-07 12:23:57 -05:00
2026-05-07 15:08:45 -05:00
2026-05-07 15:08:45 -05:00
2026-05-09 14:23:40 -05:00