Fix Arcane Missile self cast bug.
- Fixes issue [987](https://www.getmangos.eu/issue.php?issueid=987)
This commit is contained in:
parent
edd028cb36
commit
7665177e2a
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user