From 2b94d181cd3a4a97f0f30c9355aec2443d8ad10f Mon Sep 17 00:00:00 2001 From: thenecromancer Date: Wed, 13 Jan 2010 09:56:51 +0100 Subject: Check if precast spell exists before trying to cast it. (Otherwise charge-like spells spam console a lot) --HG-- branch : trunk --- src/game/Spell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index a0621b06f3f..6c18c3584c3 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -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); } -- cgit v1.2.3