public void stopFighting() { target.combat.target = null; target.combat.isFighting = false; target = null; isFighting = false; }
public int attack(Character target) { int damageDone = 0; target.takeDamage(character, damageDone = World.randomNumber.Next(2, 20)); return damageDone; }
public Combat(Character character) { this.character = character; this.target = null; }
public void takeDamage(Character attacker, int damage) { combat.target = attacker; combat.isFighting = true; stats.health -= damage; }