[8184] Added same handling for non existing excludeTargetAuraSpell as for excludeCasterAuraSpell

* This fix casting 10278 and ranks to targets with 61987

Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
ApoC 2009-07-15 22:05:48 +02:00
parent 9a0abf0e01
commit f3fa9bf5e5
2 changed files with 13 additions and 3 deletions

View file

@ -3696,8 +3696,18 @@ SpellCastResult Spell::CheckCast(bool strict)
// Target aura req check if need
if(m_spellInfo->targetAuraSpell && !target->HasAura(m_spellInfo->targetAuraSpell))
return SPELL_FAILED_CASTER_AURASTATE;
if(m_spellInfo->excludeTargetAuraSpell && target->HasAura(m_spellInfo->excludeTargetAuraSpell))
return SPELL_FAILED_CASTER_AURASTATE;
if(m_spellInfo->excludeTargetAuraSpell)
{
// Special cases of non existing auras handling
if (m_spellInfo->excludeTargetAuraSpell == 61988)
{
if (target->HasAura(61987))
return SPELL_FAILED_CASTER_AURASTATE;
}
else if (target->HasAura(m_spellInfo->excludeTargetAuraSpell))
return SPELL_FAILED_CASTER_AURASTATE;
}
if(target != m_caster)
{