[9465] Make passive aura buffs/debuffs always show at not-casters.

This fix case when some racial party passive bufs not show for party members.
This commit is contained in:
VladimirMangos 2010-02-27 07:07:58 +03:00
parent 6efb768daa
commit 844f032458
2 changed files with 6 additions and 7 deletions

View file

@ -943,16 +943,15 @@ void Aura::ApplyModifier(bool apply, bool Real)
bool Aura::IsNeedVisibleSlot(Unit const* caster) const bool Aura::IsNeedVisibleSlot(Unit const* caster) const
{ {
bool totemAura = caster && caster->GetTypeId() == TYPEID_UNIT && ((Creature*)caster)->isTotem();
// passive auras (except totem auras) do not get placed in the slots
if (m_isPassive && !totemAura)
return false;
// generic not caster case // generic not caster case
if (m_target != caster) if (m_target != caster)
return true; return true;
// passive auras (except totem auras) do not get placed in the slots for caster
bool totemAura = caster && caster->GetTypeId() == TYPEID_UNIT && ((Creature*)caster)->isTotem();
if (m_isPassive && !totemAura)
return false;
// special area auras case at caster // special area auras case at caster
switch(m_spellProto->Effect[GetEffIndex()]) switch(m_spellProto->Effect[GetEffIndex()])
{ {

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9464" #define REVISION_NR "9465"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__