mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 07:37:02 +00:00
[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:
parent
76a1843bdd
commit
65d36235bf
2 changed files with 7 additions and 6 deletions
|
|
@ -943,15 +943,16 @@ 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()])
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9471"
|
#define REVISION_NR "9472"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue