Fix insanity ER sometimes failing in inverted due to not correctly comparing player's shuffle state
This commit is contained in:
		
							parent
							
								
									71200baa98
								
							
						
					
					
						commit
						31bf0365a3
					
				
							
								
								
									
										2
									
								
								Rules.py
								
								
								
								
							
							
						
						
									
										2
									
								
								Rules.py
								
								
								
								
							| 
						 | 
				
			
			@ -61,7 +61,7 @@ def set_rules(world, player):
 | 
			
		|||
 | 
			
		||||
    if world.mode[player] != 'inverted':
 | 
			
		||||
        set_big_bomb_rules(world, player)
 | 
			
		||||
        if world.logic[player] in ['owglitches', 'nologic'] and world.shuffle not in ('insanity', 'insanity_legacy'):
 | 
			
		||||
        if world.logic[player] in {'owglitches', 'nologic'} and world.shuffle[player] not in {'insanity', 'insanity_legacy', 'madness'}:
 | 
			
		||||
            path_to_courtyard = mirrorless_path_to_castle_courtyard(world, player)
 | 
			
		||||
            add_rule(world.get_entrance('Pyramid Fairy', player), lambda state: state.world.get_entrance('Dark Death Mountain Offset Mirror', player).can_reach(state) and all(rule(state) for rule in path_to_courtyard), 'or')
 | 
			
		||||
    else:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue