mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- Fixed CostTapType hanging when X=0.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user