mirror of
				https://github.com/solero/houdini.git
				synced 2025-11-04 06:31:54 +00:00 
			
		
		
		
	handlers.player_in_room check p.room is not None
				
					
				
			This commit is contained in:
		@@ -256,5 +256,5 @@ def player_attribute(**attrs):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
def player_in_room(*room_ids):
 | 
					def player_in_room(*room_ids):
 | 
				
			||||||
    def check_room_id(_, p):
 | 
					    def check_room_id(_, p):
 | 
				
			||||||
        return p.room.id in room_ids
 | 
					        return p.room is not None and p.room.id in room_ids
 | 
				
			||||||
    return check(check_room_id)
 | 
					    return check(check_room_id)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user