From 127187fa9f3523e7785c84e9979032b994d9b5f1 Mon Sep 17 00:00:00 2001 From: Cyberium Date: Fri, 29 Apr 2016 08:35:12 +0200 Subject: [PATCH] Do not send aura update all opcode if no aura to send. --- src/game/Player.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 9bd189be2af..4e3b0519f9b 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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);