diff --git a/houdini/handlers/__init__.py b/houdini/handlers/__init__.py index c4f22c1..c07dd24 100644 --- a/houdini/handlers/__init__.py +++ b/houdini/handlers/__init__.py @@ -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)