diff options
author | QAston <none@none> | 2008-12-30 21:33:40 +0100 |
---|---|---|
committer | QAston <none@none> | 2008-12-30 21:33:40 +0100 |
commit | b8a721c9ab111b59ef38fbb5b051d1d56104cec2 (patch) | |
tree | 42a4323cc3cb9c8c26a0d9a67df4f97cc92d6ab0 /src/game/Unit.cpp | |
parent | e775ddfcb79f951f56916f91ee297a6d63487360 (diff) |
*Fix display of auras owned by out of range raid/party members.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index b830b7b4c7e..3f8eb4ac447 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -12286,7 +12286,7 @@ uint32 Unit::GetCastingTimeForBonus( SpellEntry const *spellProto, DamageEffectT return CastingTime; } -void Unit::UpdateAuraForGroup(uint8 slot, bool apply) +void Unit::UpdateAuraForGroup(uint8 slot) { if(GetTypeId() == TYPEID_PLAYER) { @@ -12294,10 +12294,7 @@ void Unit::UpdateAuraForGroup(uint8 slot, bool apply) if(player->GetGroup()) { player->SetGroupUpdateFlag(GROUP_UPDATE_FLAG_AURAS); - if(apply) - player->SetAuraUpdateMask(slot); - else - player->UnsetAuraUpdateMask(slot); + player->SetAuraUpdateMask(slot); } } else if(GetTypeId() == TYPEID_UNIT && ((Creature*)this)->isPet()) @@ -12309,10 +12306,7 @@ void Unit::UpdateAuraForGroup(uint8 slot, bool apply) if(owner && (owner->GetTypeId() == TYPEID_PLAYER) && ((Player*)owner)->GetGroup()) { ((Player*)owner)->SetGroupUpdateFlag(GROUP_UPDATE_FLAG_PET_AURAS); - if(apply) - pet->SetAuraUpdateMask(slot); - else - pet->UnsetAuraUpdateMask(slot); + pet->SetAuraUpdateMask(slot); } } } |