From 844f032458ca5bd0da6691fed0b942e10a35f9cd Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Sat, 27 Feb 2010 07:07:58 +0300 Subject: [PATCH] [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. --- src/game/SpellAuras.cpp | 11 +++++------ src/shared/revision_nr.h | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 48da2040f..4e9349026 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -943,16 +943,15 @@ 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()]) { diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index d708ed4fd..90f9ac6f2 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9464" + #define REVISION_NR "9465" #endif // __REVISION_NR_H__