aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-12-27 09:21:08 +0100
committerMachiavelli <none@none>2010-12-27 09:21:08 +0100
commitd69a1c3629a7355d371443d45b821443a887051a (patch)
treefb9aef2519eab1d96fed35bdb33b91d23164a5d0
parent4a169412b7166db18ea423aac5ccb7a18ae6e95d (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-xsrc/server/game/Spells/SpellEffects.cpp4
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);
}