Core/Spells: Implemented SPELL_ATTR5_NOT_ON_PLAYER and SPELL_ATTR5_NOT_ON_PLAYER_CONTROLLED_NPC
Port From (https://github.com/TrinityCore/TrinityCore/commit/acda6f9dcf411a1406b81e1a100125dbe34f942b)
This commit is contained in:
@@ -1594,6 +1594,8 @@ namespace Game.Spells
|
||||
retMask &= GridMapTypeMask.Corpse | GridMapTypeMask.Player;
|
||||
if (m_spellInfo.HasAttribute(SpellAttr3.OnlyOnGhosts))
|
||||
retMask &= GridMapTypeMask.Player;
|
||||
if (m_spellInfo.HasAttribute(SpellAttr5.NotOnPlayer))
|
||||
retMask &= ~GridMapTypeMask.Player;
|
||||
|
||||
if (condList != null)
|
||||
retMask &= Global.ConditionMgr.GetSearcherTypeMaskForConditionList(condList);
|
||||
|
||||
Reference in New Issue
Block a user