v0.7.3a: fixed bombs destroying armor which contains warrior's seal

This commit is contained in:
Evan Debenham 2019-05-24 21:47:01 -04:00
parent 8d6b3835b1
commit 37611029a4

View File

@ -35,6 +35,7 @@ import com.shatteredpixel.shatteredpixeldungeon.effects.Speck;
import com.shatteredpixel.shatteredpixeldungeon.effects.particles.ElmoParticle;
import com.shatteredpixel.shatteredpixeldungeon.effects.particles.FlameParticle;
import com.shatteredpixel.shatteredpixeldungeon.effects.particles.ShadowParticle;
import com.shatteredpixel.shatteredpixeldungeon.items.armor.Armor;
import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.Artifact;
import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.DriedRose;
import com.shatteredpixel.shatteredpixeldungeon.items.bombs.Bomb;
@ -320,7 +321,8 @@ public class Heap implements Bundlable {
}
//unique and upgraded items can endure the blast
} else if (!(item.level() > 0 || item.unique))
} else if (!(item.level() > 0 || item.unique
|| (item instanceof Armor && ((Armor) item).checkSeal() != null)))
items.remove( item );
}