void HealHpPercent(FightActor actor, int percent) { var healAmount = (int)(actor.MaxLifePoints * (percent / 100d)); actor.Heal(healAmount, Caster, true); }
static void HealHpPercent(FightActor actor, int amount, int percent) { var healAmount = (int)(amount * (percent / 100d)); actor.Heal(healAmount, actor, true); }
private void HealHpPercent(FightActor actor, int percent) { int healPoints = (int)((double)actor.MaxLifePoints * ((double)percent / 100.0)); actor.Heal(healPoints, base.Caster, false); }