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

This reverts commit 43f6a355e5a94c56c8fd6b881b572e1d685f046c.

Need more work.
This commit is contained in:
VladimirMangos 2010-02-27 23:05:27 +03:00
parent 76a1843bdd
commit 65d36235bf
2 changed files with 7 additions and 6 deletions

View file

@ -943,15 +943,16 @@ void Aura::ApplyModifier(bool apply, bool Real)
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
if (m_target != caster)
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
switch(m_spellProto->Effect[GetEffIndex()])
{

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9471"
#define REVISION_NR "9472"
#endif // __REVISION_NR_H__