mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-19 22:39:39 -04:00
now all aura updates are placed into one packet
--HG-- branch : trunk
This commit is contained in:
+5
-1
@@ -3242,9 +3242,13 @@ void Unit::_UpdateSpells( uint32 time )
|
||||
++i;
|
||||
}
|
||||
|
||||
WorldPacket data(SMSG_AURA_UPDATE, 50);
|
||||
data.append(GetPackGUID());
|
||||
for (VisibleAuraMap::iterator itr = m_visibleAuras.begin(); itr != m_visibleAuras.end(); ++itr)
|
||||
if (itr->second->IsNeedClientUpdate())
|
||||
itr->second->ClientUpdate();
|
||||
itr->second->ConstructAuraInfo(data);
|
||||
|
||||
SendMessageToSet(&data, true);
|
||||
|
||||
_DeleteRemovedAuras();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user