*Autoselect cost if there's only one for ExilAndPay

This commit is contained in:
Hellfish
2013-05-01 19:58:15 +00:00
parent 76d445a6cb
commit a059a7c7da

View File

@@ -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;