diff options
author | megamage <none@none> | 2009-08-15 20:36:21 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-15 20:36:21 -0500 |
commit | 917bf34a9855d68ebe13e94d9beeb1473f729230 (patch) | |
tree | 2e8fc6d0bc2e21d29c83762d65e7de4176abe204 /src | |
parent | cbe2f63d4277b502a79736463f71755d92830695 (diff) |
*better handle effect 140. do not consider bp > 0 as custom damage.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellEffects.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 94352859334..4824b260334 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -2009,9 +2009,22 @@ void Spell::EffectForceCast(uint32 i) } 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); + { + if(m_spellInfo->EffectBasePoints[i] > 0) + { + switch(m_spellInfo->Id) + { + case 52588: unitTarget->RemoveAura(damage); break; + } + } + else + { + unitTarget->CastCustomSpell(unitTarget, spellInfo->Id, &damage, NULL, NULL, true, NULL, NULL, m_originalCasterGUID); + return; + } + } + + unitTarget->CastSpell(unitTarget, spellInfo, true, NULL, NULL, m_originalCasterGUID); } void Spell::EffectTriggerSpell(uint32 i) |