mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-28 05:33:46 -08:00
Added more actions to server white list
I have added card moving to the white list. I was getting flood messages when moving cards quickly in my side deck.
This commit is contained in:
@@ -185,18 +185,20 @@ Response::ResponseCode Server_ProtocolHandler::processRoomCommandContainer(const
|
||||
Response::ResponseCode Server_ProtocolHandler::processGameCommandContainer(const CommandContainer &cont, ResponseContainer &rc)
|
||||
{
|
||||
static QList<GameCommand::GameCommandType> antifloodCommandsWhiteList = QList<GameCommand::GameCommandType>()
|
||||
// draw, undraw cards (eg: drawing 10 cards one by one from the deck)
|
||||
// draw/undo card draw (example: drawing 10 cards one by one from the deck)
|
||||
<< GameCommand::DRAW_CARDS
|
||||
<< GameCommand::UNDO_DRAW
|
||||
// create, delete arrows (eg: targeting with 10 cards during an attack)
|
||||
// create, delete arrows (example: targeting with 10 cards during an attack)
|
||||
<< GameCommand::CREATE_ARROW
|
||||
<< GameCommand::DELETE_ARROW
|
||||
// set card attributes (eg: tapping 10 cards at once)
|
||||
// set card attributes (example: tapping 10 cards at once)
|
||||
<< GameCommand::SET_CARD_ATTR
|
||||
// increment / decrement counter (eg: -10 lifepoints one by one)
|
||||
// increment / decrement counter (example: -10 life points one by one)
|
||||
<< GameCommand::INC_COUNTER
|
||||
// mulling lots of hands in a row
|
||||
<< GameCommand::MULLIGAN;
|
||||
<< GameCommand::MULLIGAN
|
||||
// allows a user to sideboard without receiving flooding message
|
||||
<< GameCommand::MOVE_CARD;
|
||||
|
||||
if (authState == NotLoggedIn)
|
||||
return Response::RespLoginNeeded;
|
||||
|
||||
Reference in New Issue
Block a user