feat: rename target player not specified

This commit is contained in:
Jorens Shtekels 2024-03-12 22:03:00 +02:00
parent 23c1c23858
commit ec828dfaa3

View File

@ -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;