diff options
author | QAston <none@none> | 2009-07-30 00:05:36 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-07-30 00:05:36 +0200 |
commit | 29e9bc64d1d1383cdd8b84f19db84e84f59922e6 (patch) | |
tree | 92fc322995b800ca2024abec1a9d067aa55c6db4 | |
parent | ba26a738c4bb4018ed67de0b3e8eb8c2bb783256 (diff) |
*Use basepoints for effect 140 only when non-null.
--HG--
branch : trunk
-rw-r--r-- | src/game/SpellEffects.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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) |