v0.3.4: fixed a bug with scroll of magical infusion and the no scrolls challenge

This commit is contained in:
Evan Debenham 2016-01-22 23:34:42 -05:00 committed by Evan Debenham
parent b45d35dbf2
commit 0e2fbc05fb

View File

@ -719,7 +719,7 @@ public abstract class Level implements Bundlable {
(Dungeon.isChallenged( Challenges.NO_ARMOR ) && item instanceof Armor) ||
(Dungeon.isChallenged( Challenges.NO_HEALING ) && item instanceof PotionOfHealing) ||
(Dungeon.isChallenged( Challenges.NO_HERBALISM ) && (item instanceof Plant.Seed || item instanceof Dewdrop || item instanceof SeedPouch)) ||
(Dungeon.isChallenged( Challenges.NO_SCROLLS ) && ((item instanceof Scroll && !(item instanceof ScrollOfUpgrade)) || item instanceof ScrollHolder)) ||
(Dungeon.isChallenged( Challenges.NO_SCROLLS ) && ((item instanceof Scroll && !(item instanceof ScrollOfUpgrade || item instanceof ScrollOfMagicalInfusion)) || item instanceof ScrollHolder)) ||
item == null) {
//create a dummy heap, give it a dummy sprite, don't add it to the game, and return it.