From 29e9bc64d1d1383cdd8b84f19db84e84f59922e6 Mon Sep 17 00:00:00 2001 From: QAston Date: Thu, 30 Jul 2009 00:05:36 +0200 Subject: *Use basepoints for effect 140 only when non-null. --HG-- branch : trunk --- src/game/SpellEffects.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index bb4147cff6c..7523664c8b1 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -2028,7 +2028,10 @@ void Spell::EffectForceCast(uint32 i) return; } - unitTarget->CastCustomSpell(unitTarget, spellInfo->Id, &damage, NULL, NULL, true, NULL, NULL, m_originalCasterGUID); + if (damage) + unitTarget->CastCustomSpell(unitTarget, spellInfo->Id, &damage, NULL, NULL, true, NULL, NULL, m_originalCasterGUID); + else + unitTarget->CastSpell(unitTarget, spellInfo, true, NULL, NULL, m_originalCasterGUID); } void Spell::EffectTriggerSpell(uint32 i) -- cgit v1.2.3