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
This commit is contained in:
Machiavelli
2010-12-27 09:21:08 +01:00
parent 4a169412b7
commit d69a1c3629
+2 -2
View File
@@ -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);
}