Fixed a crash in CalcHealAbsorb

This commit is contained in:
hondacrx
2021-02-26 15:17:56 -05:00
parent fc3ecd460a
commit 2bf56cfb1b
+2 -1
View File
@@ -2666,8 +2666,9 @@ namespace Game.Entities
// absorb without mana cost
var vHealAbsorb = healInfo.GetTarget().GetAuraEffectsByType(AuraType.SchoolHealAbsorb);
foreach (var eff in vHealAbsorb)
for (var i = 0; i < vHealAbsorb.Count; ++i)
{
var eff = vHealAbsorb[i];
if (healInfo.GetHeal() <= 0)
break;