From f8c7ff0159c1882302812a41bb60e54e31bc0fd0 Mon Sep 17 00:00:00 2001 From: Matthew Peng <54301439+MEEPofFaith@users.noreply.github.com> Date: Sat, 28 Aug 2021 05:46:08 -0700 Subject: [PATCH] `Damage.damage` doesn't properly convert cores (#5882) * `Damage.damage` doesn't properly convert cores * Well that was a complete failure --- core/src/mindustry/entities/Damage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/entities/Damage.java b/core/src/mindustry/entities/Damage.java index cc11cf29fa..bc5b55a4ef 100644 --- a/core/src/mindustry/entities/Damage.java +++ b/core/src/mindustry/entities/Damage.java @@ -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); } } }