Fix wrong logic var in spirit shared (#6254)

This commit is contained in:
Pepper0ni 2026-02-14 19:04:50 +00:00 committed by GitHub
parent f31172c647
commit 7eb5acf224
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -756,7 +756,7 @@ bool SpiritCertainAccess(RandomizerRegion region) {
// If we have enough keys that an age cannot be kept out, we have Certain Access
// otherwise if we have entered in reverse and can reach from the face, we have Certain Access
return ((knownFrontAccess && curRegionData.adultAccess()) && logic->SmallKeys(SCENE_SPIRIT_TEMPLE, keys)) ||
((logic->Get(LOGIC_FORWARDS_SPIRIT_ADULT) && curRegionData.reverseAccess()) &&
((logic->Get(LOGIC_REVERSE_SPIRIT_ADULT) && curRegionData.reverseAccess()) &&
logic->SmallKeys(SCENE_SPIRIT_TEMPLE, revKeys)) ||
(curRegionData.adultAccess() && curRegionData.reverseAccess() &&
logic->SmallKeys(SCENE_SPIRIT_TEMPLE, keys > revKeys ? keys : revKeys));