mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-26 08:33:54 -07:00
Restrict cmdSetCounterActive to tax counters only
This commit is contained in:
parent
be9b4137d7
commit
eddf2c3072
2 changed files with 9 additions and 1 deletions
|
|
@ -578,7 +578,10 @@ Response::ResponseCode Server_Player::cmdSetCounterActive(const Command_SetCount
|
|||
}
|
||||
|
||||
const int counterId = cmd.counter_id();
|
||||
if (isCommandZoneCounterBlocked(counterId)) {
|
||||
if (!CounterIds::isTaxCounter(counterId)) {
|
||||
return Response::RespFunctionNotAllowed;
|
||||
}
|
||||
if (!game->getEnableCommandZone()) {
|
||||
return Response::RespContextError;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue