J :
* Fix issue 357, where the hand loses focus when the opponent declares attackers while the hand is open. * Harmonize the code for CardSelector.cpp to the coding style.
This commit is contained in:
@@ -139,9 +139,11 @@ int MTGAttackRule::reactToClick(MTGCardInstance * card){
|
||||
//Graphically select the next card that can attack
|
||||
if(!card->isAttacker()){
|
||||
CardSelector * cs = game->mLayers->cs;
|
||||
cs->PushLimitor();
|
||||
cs->Limit(this,CardSelector::playZone);
|
||||
cs->CheckUserInput(JGE_BTN_RIGHT);
|
||||
cs->Limit(NULL,CardSelector::playZone);
|
||||
cs->PopLimitor();
|
||||
}
|
||||
card->toggleAttacker();
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user