Hotfix for paired doors

Also made dashable filter work
This commit is contained in:
aerinon
2022-04-30 15:28:29 -06:00
parent ecf6a0bd10
commit ea745ff22e
5 changed files with 9 additions and 4 deletions

View File

@@ -1810,8 +1810,10 @@ ohko_forbidden = {
def filter_dashable_candidates(candidates, world):
forbidden_set = dashable_forbidden if world.timer in ['ohko', 'timed-ohko'] else ohko_forbidden
return [x for x in candidates if x not in forbidden_set and x.dest not in forbidden_set]
forbidden_set = dashable_forbidden
if world.timer in ['ohko', 'timed-ohko']:
forbidden_set = ohko_forbidden.union(dashable_forbidden)
return [x for x in candidates if x.name not in forbidden_set and x.dest.name not in forbidden_set]
def shuffle_bombable_dashable(bd_candidates, world, player):