From a059a7c7dad15fb197a801eabccbb0a2a3bdae4a Mon Sep 17 00:00:00 2001 From: Hellfish Date: Wed, 1 May 2013 19:58:15 +0000 Subject: [PATCH] *Autoselect cost if there's only one for ExilAndPay --- src/main/java/forge/card/cost/CostExileAndPay.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/java/forge/card/cost/CostExileAndPay.java b/src/main/java/forge/card/cost/CostExileAndPay.java index b3120f6e1cd..5f405b8f288 100644 --- a/src/main/java/forge/card/cost/CostExileAndPay.java +++ b/src/main/java/forge/card/cost/CostExileAndPay.java @@ -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;