Stop aura update packet spam, sorry about that
--HG-- branch : trunk
This commit is contained in:
+9
-4
@@ -3252,13 +3252,18 @@ void Unit::_UpdateSpells( uint32 time )
|
|||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
|
|
||||||
WorldPacket data(SMSG_AURA_UPDATE, 50);
|
WorldPacket auras;
|
||||||
data.append(GetPackGUID());
|
|
||||||
for (VisibleAuraMap::iterator itr = m_visibleAuras.begin(); itr != m_visibleAuras.end(); ++itr)
|
for (VisibleAuraMap::iterator itr = m_visibleAuras.begin(); itr != m_visibleAuras.end(); ++itr)
|
||||||
if (itr->second->IsNeedClientUpdate())
|
if (itr->second->IsNeedClientUpdate())
|
||||||
itr->second->ConstructAuraInfo(data);
|
itr->second->ConstructAuraInfo(auras);
|
||||||
|
|
||||||
SendMessageToSet(&data, true);
|
if(auras.wpos())
|
||||||
|
{
|
||||||
|
WorldPacket data(SMSG_AURA_UPDATE, GetPackGUID().size() + auras.wpos());
|
||||||
|
data.append(GetPackGUID());
|
||||||
|
data.append(auras);
|
||||||
|
SendMessageToSet(&data, true);
|
||||||
|
}
|
||||||
|
|
||||||
_DeleteRemovedAuras();
|
_DeleteRemovedAuras();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user