From 08a2fd694fbeced97a3909e0167f631445197d08 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 25 Sep 2020 02:21:06 -0400 Subject: [PATCH] v0.9.0: fixed new burning web logic burning any tile --- .../shatteredpixel/shatteredpixeldungeon/levels/Level.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java index 5eef20c44..5a88434ec 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java @@ -682,7 +682,12 @@ public abstract class Level implements Bundlable { } public void destroy( int pos ) { - set( pos, Terrain.EMBERS ); + //if raw tile type is flammable or empty + int terr = map[pos]; + if (terr == Terrain.EMPTY || terr == Terrain.EMPTY_SP + || (Terrain.flags[map[pos]] & Terrain.FLAMABLE) != 0) { + set(pos, Terrain.EMBERS); + } Blob web = blobs.get(Web.class); if (web != null){ web.clear(pos);