mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Revert 0a95c34021 (thanks QAston for talking sense into me)
--HG-- branch : trunk
This commit is contained in:
@@ -1600,7 +1600,9 @@ void Spell::EffectForceCast(SpellEffIndex effIndex)
|
||||
}
|
||||
}
|
||||
|
||||
unitTarget->CastSpell(unitTarget, spellInfo, true, NULL, NULL, m_originalCasterGUID);
|
||||
Unit * caster = GetTriggeredSpellCaster(spellInfo, m_caster, unitTarget);
|
||||
|
||||
caster->CastSpell(unitTarget, spellInfo, true, NULL, NULL, m_originalCasterGUID);
|
||||
}
|
||||
|
||||
void Spell::EffectForceCastWithValue(SpellEffIndex effIndex)
|
||||
@@ -1620,7 +1622,9 @@ void Spell::EffectForceCastWithValue(SpellEffIndex effIndex)
|
||||
}
|
||||
int32 bp = damage;
|
||||
|
||||
unitTarget->CastCustomSpell(unitTarget, spellInfo->Id, &bp, &bp, &bp, true, NULL, NULL, m_originalCasterGUID);
|
||||
Unit * caster = GetTriggeredSpellCaster(spellInfo, m_caster, unitTarget);
|
||||
|
||||
caster->CastCustomSpell(unitTarget, spellInfo->Id, &bp, &bp, &bp, true, NULL, NULL, m_originalCasterGUID);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user