treating the esc menu as "undo" when used while an abilitiesmenu is open and waiting for selection. this prevents people from using the games menu as an exploit to avoid having to do negative effects to themselves or thier cards. you either do it or we can repeat this forever :)
This commit is contained in:
@@ -903,7 +903,14 @@ void GameStateDuel::ButtonPressed(int controllerId, int controlId)
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
if(game->mLayers->actionLayer()->abilitiesMenu)
|
||||
{
|
||||
game->undo();
|
||||
menu->Close();
|
||||
setGamePhase(DUEL_STATE_CANCEL);
|
||||
break;
|
||||
}
|
||||
else
|
||||
switch (controlId)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user