v1.0.1: fixed fire and freezing not breaking items
This commit is contained in:
parent
209f717fa8
commit
1a06a42ab9
|
@ -104,7 +104,7 @@ public class Burning extends Buff implements Hero.Doom {
|
||||||
|
|
||||||
ArrayList<Item> burnable = new ArrayList<>();
|
ArrayList<Item> burnable = new ArrayList<>();
|
||||||
//does not reach inside of containers
|
//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) {
|
for (Item i : hero.belongings.backpack.items) {
|
||||||
if (!i.unique && (i instanceof Scroll || i instanceof MysteryMeat || i instanceof FrozenCarpaccio)) {
|
if (!i.unique && (i instanceof Scroll || i instanceof MysteryMeat || i instanceof FrozenCarpaccio)) {
|
||||||
burnable.add(i);
|
burnable.add(i);
|
||||||
|
|
|
@ -61,7 +61,7 @@ public class Frost extends FlavourBuff {
|
||||||
Hero hero = (Hero)target;
|
Hero hero = (Hero)target;
|
||||||
ArrayList<Item> freezable = new ArrayList<>();
|
ArrayList<Item> freezable = new ArrayList<>();
|
||||||
//does not reach inside of containers
|
//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) {
|
for (Item i : hero.belongings.backpack.items) {
|
||||||
if (!i.unique && (i instanceof Potion || i instanceof MysteryMeat)) {
|
if (!i.unique && (i instanceof Potion || i instanceof MysteryMeat)) {
|
||||||
freezable.add(i);
|
freezable.add(i);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user