Damage.damage doesn't properly convert cores (#5882)

* `Damage.damage` doesn't properly convert cores

* Well that was a complete failure
This commit is contained in:
Matthew Peng
2021-08-28 05:46:08 -07:00
committed by GitHub
parent 4d62b0321f
commit f8c7ff0159

View File

@@ -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())) && Mathf.dst(dx, dy) <= trad){
tile.build.damage(damage);
tile.build.damage(team, damage);
}
}
}