Core/Spells, DB/Conditions: convert checkcast cpp to conditions for spell 52264 (deliver stolen horse)

This commit is contained in:
Kandera
2012-05-18 12:09:35 -04:00
parent edf1de6d93
commit 01b2bf8057
2 changed files with 3 additions and 5 deletions
-5
View File
@@ -4992,11 +4992,6 @@ SpellCastResult Spell::CheckCast(bool strict)
if (!unit || !unit->HasAura(17743))
return SPELL_FAILED_BAD_TARGETS;
}
else if (m_spellInfo->Id == 52264) // Deliver Stolen Horse
{
if (!m_caster->FindNearestCreature(28653, 5))
return SPELL_FAILED_OUT_OF_RANGE;
}
else if (m_spellInfo->Id == 31789) // Righteous Defense
{
if (m_caster->GetTypeId() != TYPEID_PLAYER)