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:
omegablast2002@yahoo.com
2012-03-25 11:40:43 +00:00
parent 59bedf0f07
commit a2ca6ce26b

View File

@@ -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)
{