mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Fix for CostExile not grabbing Valid Cards before being used with XChoice
This commit is contained in:
@@ -90,7 +90,9 @@ public class CostExile extends CostPartWithList {
|
||||
public boolean payHuman(SpellAbility ability, Card source, Cost_Payment payment) {
|
||||
String amount = getAmount();
|
||||
Integer c = convertAmount();
|
||||
CardList list = AllZoneUtil.getCardsInZone(getFrom(), ability.getActivatingPlayer());
|
||||
Player activator = ability.getActivatingPlayer();
|
||||
CardList list = AllZoneUtil.getCardsInZone(getFrom(), activator);
|
||||
list = list.getValidCards(type.split(";"), activator, source);
|
||||
if (c == null){
|
||||
String sVar = source.getSVar(amount);
|
||||
// Generalize this
|
||||
|
||||
Reference in New Issue
Block a user