Core/Spells: Fixed Lay on Hands not triggering Forbearance on target

This commit is contained in:
hondacrx
2018-02-26 13:37:25 -05:00
parent 78f0f7557e
commit cada4700f3
+4 -4
View File
@@ -634,11 +634,11 @@ namespace Scripts.Spells.Paladin
void TriggerForbearance()
{
Unit caster = GetCaster();
if (caster == GetHitUnit())
Unit target = GetHitUnit();
if (target)
{
caster.CastSpell(caster, SpellIds.Forbearance, true);
caster.CastSpell(caster, SpellIds.ImmuneShieldMarker, true);
GetCaster().CastSpell(target, SpellIds.Forbearance, true);
GetCaster().CastSpell(target, SpellIds.ImmuneShieldMarker, true);
}
}