aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authorsilver1ce <none@none>2010-01-10 13:52:13 +0200
committersilver1ce <none@none>2010-01-10 13:52:13 +0200
commiteea50de960f0035cd54e985dc119870aa215732b (patch)
tree33a184ec8c3504f6f58ce0805b1df6ff6391f0b2 /src/game/Unit.cpp
parente3ff6145eec7e72299d4223714e98048643c5c75 (diff)
now all aura updates are placed into one packet
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp6
1 files changed, 5 insertions, 1 deletions
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();