Core/Spell: restore old proc system behaviour on auras self proc.
This commit is contained in:
@@ -104,7 +104,7 @@ namespace Scripts.Spells.Priest
|
||||
return;
|
||||
|
||||
int amount = (int)MathFunctions.CalculatePct(healInfo.GetHeal(), 10);
|
||||
caster.CastCustomSpell(SpellIds.OracularHeal, SpellValueMod.BasePoint0, amount, caster, true);
|
||||
caster.CastCustomSpell(SpellIds.OracularHeal, SpellValueMod.BasePoint0, amount, caster, true, null, aurEff);
|
||||
}
|
||||
|
||||
public override void Register()
|
||||
@@ -936,7 +936,7 @@ namespace Scripts.Spells.Priest
|
||||
void HandleProc(AuraEffect aurEff, ProcEventInfo eventInfo)
|
||||
{
|
||||
PreventDefaultAction();
|
||||
eventInfo.GetActor().CastSpell(eventInfo.GetProcTarget(), SpellIds.ArmorOfFaith, true);
|
||||
eventInfo.GetActor().CastSpell(eventInfo.GetProcTarget(), SpellIds.ArmorOfFaith, true, null, aurEff);
|
||||
}
|
||||
|
||||
public override void Register()
|
||||
@@ -1006,7 +1006,7 @@ namespace Scripts.Spells.Priest
|
||||
Unit target = eventInfo.GetProcTarget();
|
||||
amount += (int)target.GetRemainingPeriodicAmount(caster.GetGUID(), SpellIds.BlessedHealing, AuraType.PeriodicHeal);
|
||||
|
||||
caster.CastCustomSpell(SpellIds.BlessedHealing, SpellValueMod.BasePoint0, amount, target, true);
|
||||
caster.CastCustomSpell(SpellIds.BlessedHealing, SpellValueMod.BasePoint0, amount, target, true, null, aurEff);
|
||||
}
|
||||
|
||||
public override void Register()
|
||||
|
||||
Reference in New Issue
Block a user