*Implement attribute flag SPELL_ATTR_EX_CANT_TARGET_SELF.
--HG-- branch : trunk
This commit is contained in:
1 parent
6443bf531c
commit
91c309387a
2 files changed
+4
-1
No files matched your search
@@ -4341,6 +4341,9 @@ SpellCastResult Spell::CheckCast(bool strict)
|
||||
if(m_spellInfo->excludeTargetAuraSpell && target->HasAura(m_spellInfo->excludeTargetAuraSpell))
|
||||
return SPELL_FAILED_TARGET_AURASTATE;
|
||||
|
||||
if(target == m_caster && m_spellInfo->AttributesEx & SPELL_ATTR_EX_CANT_TARGET_SELF)
|
||||
return SPELL_FAILED_BAD_TARGETS;
|
||||
|
||||
if(target != m_caster)
|
||||
{
|
||||
// target state requirements (apply to non-self only), to allow cast affects to self like Dirty Deeds
|
||||
|
||||
Reference in new issue
Block a user