From 4eb37871fa99d8b7ddbf8289ae378c1032465e73 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 2 Oct 2023 12:12:41 -0400 Subject: [PATCH] v2.2.0: fixed rogue's foresight triggering on mining level --- .../shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java index e852a81e3..beb78c602 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java @@ -509,7 +509,7 @@ public class GameScene extends PixelScene { } if (Dungeon.hero.hasTalent(Talent.ROGUES_FORESIGHT) - && Dungeon.level instanceof RegularLevel){ + && Dungeon.level instanceof RegularLevel && Dungeon.branch == 0){ int reqSecrets = Dungeon.level.feeling == Level.Feeling.SECRETS ? 2 : 1; for (Room r : ((RegularLevel) Dungeon.level).rooms()){ if (r instanceof SecretRoom) reqSecrets--;