From 2bba05cc2234e5d13a4fec7069b35cf99fce1ed6 Mon Sep 17 00:00:00 2001 From: MahtraDR <93822896+MahtraDR@users.noreply.github.com> Date: Sat, 17 Feb 2024 18:24:57 +1300 Subject: [PATCH] [scripts][common-travel] Expand nemesis avoidance Avoids a room with a nemesis in it, even if a friend is in that room. --- common-travel.lic | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common-travel.lic b/common-travel.lic index a6b4fc132c..28edaac6a3 100644 --- a/common-travel.lic +++ b/common-travel.lic @@ -291,8 +291,8 @@ module DRCT rooms_searched += 1 if priotize_buddies && (rooms_searched <= search_rooms.size) - suitable_room = (DRRoom.pcs & UserVars.friends).any? - if (rooms_searched == search_rooms.size && (DRRoom.pcs & UserVars.friends).empty?) + suitable_room = ((DRRoom.pcs & UserVars.friends).any? && (DRRoom.pcs & UserVars.hunting_nemesis).none?) + if (rooms_searched == search_rooms.size && (DRRoom.pcs & UserVars.friends).empty? && (DRRoom.pcs & UserVars.hunting_nemesis).empty?) echo("*** Reached last room in list, and found no buddies. Retrying for empty room. ***") return find_empty_room(search_rooms, idle_room, predicate, min_mana, strict_mana, max_search_attempts, priotize_buddies = false) end