From 622bb9e5f75e2926c9b733efb92c548a8844ddb5 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 3 Nov 2022 19:34:15 +0100 Subject: [PATCH] when setting Elemental Wall as cheat destination, Elemental Wall itself is no longer picked --- landlock.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/landlock.cpp b/landlock.cpp index cd6aad2b..e0c30489 100644 --- a/landlock.cpp +++ b/landlock.cpp @@ -379,7 +379,7 @@ EX eLand getNewLand(eLand old) { eLand l = callhandlers(laNone, hooks_nextland, old); if(l) return l; - if(cheatdest != old) if(!isCyclic(cheatdest) && !isTechnicalLand(cheatdest)) return cheatdest; + if(cheatdest != old && cheatdest != laElementalWall) if(!isCyclic(cheatdest) && !isTechnicalLand(cheatdest)) return cheatdest; if(old == laTortoise) return laDragon; @@ -425,9 +425,9 @@ EX eLand getNewLand(eLand old) { #endif if(tactic::on) return specialland; - if(specialland != old && easy_to_find_specialland) return specialland; + if(specialland != old && easy_to_find_specialland && specialland != laElementalWall) return specialland; - if(specialland != old && easy_specialland) { + if(specialland != old && easy_specialland && specialland != laElementalWall) { easy_specialland--; return specialland; }