public void ApplyAbilityEffectsToUnitHit(Unit unitHit, float damage) { if (OnApplyAbilityEffects != null) { OnApplyAbilityEffects(unitHit, damage); } character.StatsManager.RestoreHealth(damage * spellVamp.GetTotal()); }
public void ApplyOnHitEffectsToUnitHit(Unit unitHit, float damage) { if (OnApplyOnHitEffects != null) { OnApplyOnHitEffects(unitHit, damage); } unit.StatsManager.RestoreHealth(damage * lifeSteal.GetTotal()); }