From 74c0d0d0fdbc2947171004047e39050b296658fa Mon Sep 17 00:00:00 2001 From: Leonwang4234 <62972692+Leonwang4234@users.noreply.github.com> Date: Fri, 2 Oct 2020 19:33:11 -0700 Subject: [PATCH] Update BulletType.java --- core/src/mindustry/entities/bullet/BulletType.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/entities/bullet/BulletType.java b/core/src/mindustry/entities/bullet/BulletType.java index 814fb489ef..a4d287862e 100644 --- a/core/src/mindustry/entities/bullet/BulletType.java +++ b/core/src/mindustry/entities/bullet/BulletType.java @@ -145,7 +145,10 @@ public abstract class BulletType extends Content{ public void hitTile(Bullet b, Building tile, float initialHealth){ if(status == StatusEffects.burning) { - Damage.createIncend(b.x, b.y, damage / 10f, (int)damage / 10); + Tile buildTile = world.tileWorld(tile.x, tile.y); + if(buildTile != null){ + Fires.create(buildTile); + } } hit(b); } @@ -192,7 +195,10 @@ public abstract class BulletType extends Content{ if(status == StatusEffects.burning) { indexer.eachBlock(null, x, y, splashDamageRadius, other -> other.team != b.team, other -> { - Damage.createIncend(x, y, damage / 10f, (int)damage / 10); + Tile tile = world.tileWorld(other.x, other.y); + if(tile != null){ + Fires.create(tile); + } }); } }