aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorthenecromancer <none@none>2010-01-13 09:56:51 +0100
committerthenecromancer <none@none>2010-01-13 09:56:51 +0100
commit2b94d181cd3a4a97f0f30c9355aec2443d8ad10f (patch)
treeaf992a8bf1e21245cb9fb3b79695c52f2c5d88f3 /src
parentecd9470dc8dbebb3a3fcef079cf71111d5ee22b7 (diff)
Check if precast spell exists before trying to cast it. (Otherwise charge-like spells spam console a lot)
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Spell.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}