public override bool fight(ControllableBoardObject target) { if (!TookAction && target.Coords.isInRange(1, Coords)) { bool dead = target.takeDamage(AttackPower); if (dead && target.isAnt() && isEnemy(target as Ant)) { Owner.Points++; Owner.KillCount++; } TookAction = true; return true; } return false; }
public override bool fight(ControllableBoardObject target) { if (!TookAction && target.Coords.isInRange(1, Coords)) { bool dead = target.takeDamage(AttackPower); if (dead && target.isAnt() && isEnemy(target as Ant)) { Owner.Points++; Owner.KillCount++; } TookAction = true; return(true); } return(false); }