mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +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)
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user