diff options
author | thenecromancer <none@none> | 2010-01-13 09:56:51 +0100 |
---|---|---|
committer | thenecromancer <none@none> | 2010-01-13 09:56:51 +0100 |
commit | 2b94d181cd3a4a97f0f30c9355aec2443d8ad10f (patch) | |
tree | af992a8bf1e21245cb9fb3b79695c52f2c5d88f3 /src/game/Spell.cpp | |
parent | ecd9470dc8dbebb3a3fcef079cf71111d5ee22b7 (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/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 2 |
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); } |