From ec828dfaa3014256aa6f8cc52c95f67c498c6574 Mon Sep 17 00:00:00 2001 From: Jorens Shtekels Date: Tue, 12 Mar 2024 22:03:00 +0200 Subject: [PATCH] feat: rename target player not specified --- src/lib.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.cpp b/src/lib.cpp index c4197d2..e772912 100644 --- a/src/lib.cpp +++ b/src/lib.cpp @@ -10,6 +10,7 @@ enum VALIDATION_STATUS { PLAYER_NOT_IN_ROOM, NO_PLAYER, + NO_TARGET_PLAYER_SPECIFIED, ROOM_NOT_IN_PROGRESS, ACTION_PROHIBITED, NO_ROLE, @@ -43,7 +44,7 @@ int validateAction( return NO_PLAYER; } if (action->hasTarget && !target) { - return NO_PLAYER; + return NO_TARGET_PLAYER_SPECIFIED; } if (room->status != RoomStatus::IN_PROGRESS) { return ROOM_NOT_IN_PROGRESS;