private void handleAbilityTargetClick(Tile tile) {
		selectedTile.getUnit().endTurn();
		
		for (Tile target : board.getTileRadius(tile, range.getAbility().getProperty(Ability.Property.EFFECT_RADIUS))) {
			//Affect every tile in the ability's area of affect - usually, this is just the target tile.
			range.getAbility().affect(selectedTile, target, currentPlayerIndex);
			target.repaint();
			checkForDeath(target);
		}
		checkForDeath(selectedTile);
		
		selectedTile.repaint(); //Make sure the selected tile redraws itself immediately.
		setRange(null); //Don't allow further action.
		panel.setTile(selectedTile, selectedTile, getTileOwner(selectedTile), getTileOwner(selectedTile), false);
		//Refresh the unit display to grey out the ability buttons and update status.
		
		checkVictoryConditions();
	}