public Damage Attack(LivingBase target) { if (isDead) { return(Damage.NONE); } return(target.DoDamage(new Damage(power))); }
public Damage Attack(LivingBase target, Damage damage) { if (isDead) { return(Damage.NONE); } return(target.DoDamage(damage)); }
public int Attack(LivingBase target) { if (isDead) { return(-1); } return(target.DoDamage(new Damage(power))); }
private void Strike(Encounter encounter, LivingBase user, LivingBase target) { Damage amount = user.Attack(target); GameEngine.game.AppendText($"{user.name} slashes {target.name} for {amount.amount} {amount.type} damage.\n"); }