Merge pull request #64 from H0zen/develop21

[Core] Fix Arcane Missile self cast bug.
This commit is contained in:
Antz 2016-01-19 21:37:18 +00:00
commit f8f4d90dcf

View File

@ -4252,12 +4252,17 @@ SpellCastResult Spell::CheckCast(bool strict)
if (!target) if (!target)
{ return SPELL_FAILED_BAD_TARGETS; } { return SPELL_FAILED_BAD_TARGETS; }
// Arcane Missile self cast forbidden
if (m_spellInfo->SpellFamilyName == SPELLFAMILY_MAGE &&
m_spellInfo->SpellFamilyFlags & UI64LIT(0x00000800) &&
m_caster == target)
{ return SPELL_FAILED_BAD_TARGETS; }
m_targets.setUnitTarget(target); m_targets.setUnitTarget(target);
} }
} }
// Some special spells with non-caster only mode // Some special spells with non-caster only mode
// Fire Shield // Fire Shield
if (m_spellInfo->SpellFamilyName == SPELLFAMILY_WARLOCK && if (m_spellInfo->SpellFamilyName == SPELLFAMILY_WARLOCK &&
m_spellInfo->SpellIconID == 16) m_spellInfo->SpellIconID == 16)