mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Allow cancel for sacrifice cost payment - http://www.slightlymagic.net/forum/viewtopic.php?p=115356#p115356
This commit is contained in:
@@ -164,6 +164,7 @@ public class CostSacrifice extends CostPartWithList {
|
|||||||
|
|
||||||
InputSelectCards inp = new InputSelectCardsFromList(c, c, list);
|
InputSelectCards inp = new InputSelectCardsFromList(c, c, list);
|
||||||
inp.setMessage("Select a " + this.getDescriptiveType() + " to sacrifice (%d left)");
|
inp.setMessage("Select a " + this.getDescriptiveType() + " to sacrifice (%d left)");
|
||||||
|
inp.setCancelAllowed(true);
|
||||||
FThreads.setInputAndWait(inp);
|
FThreads.setInputAndWait(inp);
|
||||||
if ( inp.hasCancelled() )
|
if ( inp.hasCancelled() )
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user