Core/Spells: Use spell target flags to determine if spell can target dead targets - fixes skinning. Also, fix build once again

This commit is contained in:
QAston
2011-08-20 10:01:57 +02:00
parent 580a68573f
commit b0602b3153
2 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -5475,8 +5475,8 @@ SpellCastResult Spell::CheckPetCast(Unit* target)
}
// cooldown
if (Unit const* creatureCaster = m_caster->ToCreature())
creatureCaster->HasSpellCooldown(m_spellInfo->Id))
if (Creature const* creatureCaster = m_caster->ToCreature())
if (creatureCaster->HasSpellCooldown(m_spellInfo->Id))
return SPELL_FAILED_NOT_READY;
return CheckCast(true);