mirror of
https://github.com/jorenchik/testing-spring-2024.git
synced 2025-10-21 20:10:36 +00:00
feat: rename target player not specified
This commit is contained in:
parent
23c1c23858
commit
ec828dfaa3
@ -10,6 +10,7 @@
|
|||||||
enum VALIDATION_STATUS {
|
enum VALIDATION_STATUS {
|
||||||
PLAYER_NOT_IN_ROOM,
|
PLAYER_NOT_IN_ROOM,
|
||||||
NO_PLAYER,
|
NO_PLAYER,
|
||||||
|
NO_TARGET_PLAYER_SPECIFIED,
|
||||||
ROOM_NOT_IN_PROGRESS,
|
ROOM_NOT_IN_PROGRESS,
|
||||||
ACTION_PROHIBITED,
|
ACTION_PROHIBITED,
|
||||||
NO_ROLE,
|
NO_ROLE,
|
||||||
@ -43,7 +44,7 @@ int validateAction(
|
|||||||
return NO_PLAYER;
|
return NO_PLAYER;
|
||||||
}
|
}
|
||||||
if (action->hasTarget && !target) {
|
if (action->hasTarget && !target) {
|
||||||
return NO_PLAYER;
|
return NO_TARGET_PLAYER_SPECIFIED;
|
||||||
}
|
}
|
||||||
if (room->status != RoomStatus::IN_PROGRESS) {
|
if (room->status != RoomStatus::IN_PROGRESS) {
|
||||||
return ROOM_NOT_IN_PROGRESS;
|
return ROOM_NOT_IN_PROGRESS;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user