allow cancel for rem counter cost

This commit is contained in:
Maxmtg
2013-04-07 23:57:35 +00:00
parent d86480e3f2
commit 30d20195c8

View File

@@ -150,7 +150,7 @@ public class CostRemoveCounter extends CostPartWithList {
if (this.getZone().equals(ZoneType.Battlefield)) { if (this.getZone().equals(ZoneType.Battlefield)) {
final InputSelectCardToRemoveCounter inp = new InputSelectCardToRemoveCounter(cntRemoved, getCounter(), validCards); final InputSelectCardToRemoveCounter inp = new InputSelectCardToRemoveCounter(cntRemoved, getCounter(), validCards);
inp.setMessage("Remove %d " + getCounter().getName() + " counters from " + getDescriptiveType()); inp.setMessage("Remove %d " + getCounter().getName() + " counters from " + getDescriptiveType());
inp.setCancelAllowed(true);
FThreads.setInputAndWait(inp); FThreads.setInputAndWait(inp);
if(inp.hasCancelled()) if(inp.hasCancelled())
return false; return false;