Skip to content

Commit

Permalink
Do not send aura update all opcode if no aura to send.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberium committed Apr 29, 2016
1 parent a4b04f4 commit 127187f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/game/Player.cpp
Expand Up @@ -20149,6 +20149,10 @@ void Player::SendAurasForTarget(Unit* target)
data << target->GetPackGUID();

Unit::VisibleAuraMap const& visibleAuras = target->GetVisibleAuras();

if (visibleAuras.empty())
return;

for (Unit::VisibleAuraMap::const_iterator itr = visibleAuras.begin(); itr != visibleAuras.end(); ++itr)
{
SpellAuraHolderConstBounds bounds = target->GetSpellAuraHolderBounds(itr->second);
Expand Down

2 comments on commit 127187f

@Dramacydal
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty opcode is still needed to clear all slots client-side

@cyberium
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank i'll check that and revert it if any.

Please sign in to comment.