now all aura updates are placed into one packet

--HG--
branch : trunk
This commit is contained in:
silver1ce
2010-01-10 13:52:13 +02:00
parent e3ff6145ee
commit eea50de960
3 changed files with 38 additions and 1 deletions
+5 -1
View File
@@ -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();