mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
*Autoselect cost if there's only one for ExilAndPay
This commit is contained in:
@@ -112,7 +112,16 @@ public class CostExileAndPay extends CostPartWithList {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Cost selectedCost = GuiChoose.oneOrNone("Choose a cost", options);
|
Cost selectedCost;
|
||||||
|
if(options.size() > 1)
|
||||||
|
{
|
||||||
|
selectedCost = GuiChoose.oneOrNone("Choose a cost", options);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
selectedCost = options.get(0);
|
||||||
|
}
|
||||||
|
|
||||||
if(selectedCost == null)
|
if(selectedCost == null)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user