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
2010-01-13 09:56:51 +01:00
parent ecd9470dc8
commit 2b94d181cd

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);
}