if (entity.target == null) {
ArrayList<Pathable> avaible = AStarCus.expandPath(Main.game.world.tiles, entity.tile, entity.entitytyp.speed * 3);
for (Pathable pathable: avaible) {
Tile tile = (Tile) pathable;
if (tile.entity != null) {
Entity entity1 = tile.entity;
if (!tile.entity.team.equals(entity.team)) {
if (Main.game.calculateFightCost(entity, entity.tile, entity1) <= -5 || Game.redTeam.hq.getPositionV2().dst(entity1.tile.getPositionV2()) < 14) {