diff options
author | Machiavelli <none@none> | 2010-12-27 09:21:08 +0100 |
---|---|---|
committer | Machiavelli <none@none> | 2010-12-27 09:21:08 +0100 |
commit | d69a1c3629a7355d371443d45b821443a887051a (patch) | |
tree | fb9aef2519eab1d96fed35bdb33b91d23164a5d0 | |
parent | 4a169412b7166db18ea423aac5ccb7a18ae6e95d (diff) |
Core/Spells: Fix SPELL_EFFECT_FORCE_CAST(140), SPELL_EFFECT_FORCE_CAST_WITH_VALUE(141). These should force the target to cast a certain spell, not serve as a proxy for the original caster to cast another spell.
--HG--
branch : trunk
-rwxr-xr-x | src/server/game/Spells/SpellEffects.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index 1470e80f8cf..121f970958b 100755 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -1601,7 +1601,7 @@ void Spell::EffectForceCast(SpellEffIndex effIndex) } Unit * caster = GetTriggeredSpellCaster(spellInfo, m_caster, unitTarget); - caster->CastSpell(unitTarget, spellInfo, true, NULL, NULL, m_originalCasterGUID); + unitTarget->CastSpell(unitTarget, spellInfo, true, NULL, NULL, m_originalCasterGUID); } void Spell::EffectForceCastWithValue(SpellEffIndex effIndex) @@ -1622,7 +1622,7 @@ void Spell::EffectForceCastWithValue(SpellEffIndex effIndex) int32 bp = damage; Unit * caster = GetTriggeredSpellCaster(spellInfo, m_caster, unitTarget); - caster->CastCustomSpell(unitTarget, spellInfo->Id, &bp, &bp, &bp, true, NULL, NULL, m_originalCasterGUID); + unitTarget->CastCustomSpell(unitTarget, spellInfo->Id, &bp, &bp, &bp, true, NULL, NULL, m_originalCasterGUID); } |