Merge remote-tracking branch 'origin/master'
# Conflicts: # core/src/mindustry/entities/Damage.java
This commit is contained in:
@@ -466,7 +466,7 @@ public class Damage{
|
||||
for(int dy = -trad; dy <= trad; dy++){
|
||||
Tile tile = world.tile(Math.round(x / tilesize) + dx, Math.round(y / tilesize) + dy);
|
||||
if(tile != null && tile.build != null && (team == null ||team.isEnemy(tile.team())) && dx*dx + dy*dy <= trad){
|
||||
tile.build.damage(damage);
|
||||
tile.build.damage(team, damage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user