public bool CheckForCapture(Faction faction) { if (GetValue() % 10 == 0) { int radius = (GetValue() / 10) - 1; Map.Coord[] coords = map.GetCellsInCircle(this.pos, radius, true).ToArray(); foreach (Map.Coord c in coords) { ClickableTile tempTile = map.tiles[c.x, c.y]; tempTile.SetOwner(faction); tempTile.SetValue(1); map.audioSource.Play(); } return(true); } else { return(false); } }