From 1a06a42ab9f751da65738d47b224815507d01e85 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 23 Aug 2021 19:02:04 -0400 Subject: [PATCH] v1.0.1: fixed fire and freezing not breaking items --- .../shatteredpixeldungeon/actors/buffs/Burning.java | 2 +- .../shatteredpixeldungeon/actors/buffs/Frost.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Burning.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Burning.java index df6c00024..9e3cab051 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Burning.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Burning.java @@ -104,7 +104,7 @@ public class Burning extends Buff implements Hero.Doom { ArrayList burnable = new ArrayList<>(); //does not reach inside of containers - if (hero.buff(LostInventory.class) != null) { + if (hero.buff(LostInventory.class) == null) { for (Item i : hero.belongings.backpack.items) { if (!i.unique && (i instanceof Scroll || i instanceof MysteryMeat || i instanceof FrozenCarpaccio)) { burnable.add(i); diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Frost.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Frost.java index 87108d584..c0f758729 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Frost.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Frost.java @@ -61,7 +61,7 @@ public class Frost extends FlavourBuff { Hero hero = (Hero)target; ArrayList freezable = new ArrayList<>(); //does not reach inside of containers - if (hero.buff(LostInventory.class) != null) { + if (hero.buff(LostInventory.class) == null) { for (Item i : hero.belongings.backpack.items) { if (!i.unique && (i instanceof Potion || i instanceof MysteryMeat)) { freezable.add(i);