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:
parent
c07ec9aa23
commit
7680154395
1 changed files with 7 additions and 5 deletions
|
@ -185,18 +185,20 @@ Response::ResponseCode Server_ProtocolHandler::processRoomCommandContainer(const
|
||||||
Response::ResponseCode Server_ProtocolHandler::processGameCommandContainer(const CommandContainer &cont, ResponseContainer &rc)
|
Response::ResponseCode Server_ProtocolHandler::processGameCommandContainer(const CommandContainer &cont, ResponseContainer &rc)
|
||||||
{
|
{
|
||||||
static QList<GameCommand::GameCommandType> antifloodCommandsWhiteList = QList<GameCommand::GameCommandType>()
|
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::DRAW_CARDS
|
||||||
<< GameCommand::UNDO_DRAW
|
<< 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::CREATE_ARROW
|
||||||
<< GameCommand::DELETE_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
|
<< 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
|
<< GameCommand::INC_COUNTER
|
||||||
// mulling lots of hands in a row
|
// 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)
|
if (authState == NotLoggedIn)
|
||||||
return Response::RespLoginNeeded;
|
return Response::RespLoginNeeded;
|
||||||
|
|
Loading…
Reference in a new issue