mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[10221] Fixed visual bug that some deleted auras still show at client side
(based on commit b10058e) Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
98ae9efbc6
commit
1377db20a7
2 changed files with 42 additions and 42 deletions
|
|
@ -19752,12 +19752,11 @@ void Player::learnSkillRewardedSpells(uint32 skill_id, uint32 skill_value )
|
||||||
|
|
||||||
void Player::SendAurasForTarget(Unit *target)
|
void Player::SendAurasForTarget(Unit *target)
|
||||||
{
|
{
|
||||||
if(target->GetVisibleAuras()->empty()) // speedup things
|
|
||||||
return;
|
|
||||||
|
|
||||||
WorldPacket data(SMSG_AURA_UPDATE_ALL);
|
WorldPacket data(SMSG_AURA_UPDATE_ALL);
|
||||||
data << target->GetPackGUID();
|
data << target->GetPackGUID();
|
||||||
|
|
||||||
|
if(!target->GetVisibleAuras()->empty()) // speedup things
|
||||||
|
{
|
||||||
Unit::VisibleAuraMap const *visibleAuras = target->GetVisibleAuras();
|
Unit::VisibleAuraMap const *visibleAuras = target->GetVisibleAuras();
|
||||||
for(Unit::VisibleAuraMap::const_iterator itr = visibleAuras->begin(); itr != visibleAuras->end(); ++itr)
|
for(Unit::VisibleAuraMap::const_iterator itr = visibleAuras->begin(); itr != visibleAuras->end(); ++itr)
|
||||||
{
|
{
|
||||||
|
|
@ -19809,6 +19808,7 @@ void Player::SendAurasForTarget(Unit *target)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
GetSession()->SendPacket(&data);
|
GetSession()->SendPacket(&data);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10220"
|
#define REVISION_NR "10221"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue