mirror of
https://github.com/solero/houdini.git
synced 2024-12-23 14:03:38 +00:00
handlers.player_in_room
check p.room
is not None
This commit is contained in:
parent
c6809070e7
commit
6c0b6a1239
@ -256,5 +256,5 @@ def player_attribute(**attrs):
|
||||
|
||||
def player_in_room(*room_ids):
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user