- Fixed CostTapType hanging when X=0.

This commit is contained in:
Sloth
2013-02-05 19:21:38 +00:00
parent 58fa5b34ea
commit 2ad0bae9f7

View File

@@ -234,18 +234,14 @@ public class CostTapType extends CostPartWithList {
@Override @Override
public void showMessage() { public void showMessage() {
if (nCards == 0) {
this.done();
}
/*if (cardList.size() == 0) {
this.cancel();
}*/
final int left = nCards - this.nTapped; final int left = nCards - this.nTapped;
CMatchUI.SINGLETON_INSTANCE CMatchUI.SINGLETON_INSTANCE
.showMessage("Select a " + tapType.getDescription() + " to tap (" + left + " left)"); .showMessage("Select a " + tapType.getDescription() + " to tap (" + left + " left)");
ButtonUtil.enableOnlyCancel(); ButtonUtil.enableOnlyCancel();
if (nCards == 0) {
this.done();
}
} }
@Override @Override