From eea50de960f0035cd54e985dc119870aa215732b Mon Sep 17 00:00:00 2001 From: silver1ce Date: Sun, 10 Jan 2010 13:52:13 +0200 Subject: now all aura updates are placed into one packet --HG-- branch : trunk --- src/game/Unit.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/game/Unit.cpp') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 195bc6230ee..c454353955c 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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(); -- cgit v1.2.3