Check if precast spell exists before trying to cast it. (Otherwise charge-like spells spam console a lot)

--HG--
branch : trunk
This commit is contained in:
thenecromancer committed 2010-01-13 09:56:51 +01:00
1 parent ecd9470dc8
commit 2b94d181cd
1 file changed
+1 -1
+1 -1
View File
@@ -1421,7 +1421,7 @@ void Spell::DoTriggersOnSpellHit(Unit *unit)
// Cast Avenging Wrath Marker
m_caster->CastSpell(unit,61987, true, m_CastItem);
}
else
else if (sSpellStore.LookupEntry(m_preCastSpell))
m_caster->CastSpell(unit,m_preCastSpell, true, m_CastItem);
}