Core/Spells: Check SPELL_AURA_PREVENT_RESSURECTION on targets for resurrection spells

This commit is contained in:
Shauren
2011-08-21 19:03:24 +02:00
parent d5fbd223c6
commit cb9985c054
+5
View File
@@ -1592,6 +1592,11 @@ SpellCastResult SpellInfo::CheckTarget(Unit const* caster, Unit const* target, b
}
}
}
if (target->HasAuraType(SPELL_AURA_PREVENT_RESSURECTION))
if (HasEffect(SPELL_EFFECT_SELF_RESURRECT) || HasEffect(SPELL_EFFECT_RESURRECT) || HasEffect(SPELL_EFFECT_RESURRECT_NEW))
return SPELL_FAILED_TARGET_CANNOT_BE_RESURRECTED;
return SPELL_CAST_OK;
}