From 0aa44ac24303aa32a2eb8b6283e8f0485e63ae9b Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Wed, 21 Jul 2021 22:01:29 +0200 Subject: [PATCH] Fixed options spawn detection in AB+ games --- main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index ace8f965..a06fe01c 100644 --- a/main.lua +++ b/main.lua @@ -668,7 +668,7 @@ local function onRender(t) if closest:GetData()["EID_DontHide"] ~= true then local isSoulstone = closest.SubType >= 81 and closest.SubType <= 97 local hideinShop = closest:ToPickup():IsShopItem() and ((not isSoulstone and not EID.Config["DisplayCardInfoShop"]) or (isSoulstone and not EID.Config["DisplaySoulstoneInfoShop"])) - local isOptionsSpawn = closest:ToPickup().OptionsPickupIndex > 0 and not EID.Config["DisplayCardInfoOptions?"] + local isOptionsSpawn = REPENTANCE and not EID.Config["DisplayCardInfoOptions?"] and closest:ToPickup().OptionsPickupIndex > 0 local obstructed = ((not isSoulstone and not EID.Config["DisplayObstructedCardInfo"]) or (not EID.Config["DisplayObstructedSoulstoneInfo"] and isSoulstone)) and not EID.hasValidWalkingpath if isOptionsSpawn or hideinShop or obstructed or (REPENTANCE and game.Challenge == Challenge.CHALLENGE_CANTRIPPED) then EID:renderQuestionMark() @@ -684,7 +684,7 @@ local function onRender(t) return end if closest:GetData()["EID_DontHide"] ~= true then - local isOptionsSpawn = closest:ToPickup().OptionsPickupIndex > 0 and not EID.Config["DisplayPillInfoOptions?"] + local isOptionsSpawn = REPENTANCE and not EID.Config["DisplayPillInfoOptions?"] and closest:ToPickup().OptionsPickupIndex > 0 if isOptionsSpawn or (closest:ToPickup():IsShopItem() and not EID.Config["DisplayPillInfoShop"]) or (not EID.Config["DisplayObstructedPillInfo"] and not EID.hasValidWalkingpath) then EID:renderQuestionMark() return