mirror of
https://github.com/jorenchik/testing-spring-2024.git
synced 2026-02-04 06:42:02 +00:00
feat: rename target player not specified
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user