mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48: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) {
|
public boolean payHuman(SpellAbility ability, Card source, Cost_Payment payment) {
|
||||||
String amount = getAmount();
|
String amount = getAmount();
|
||||||
Integer c = convertAmount();
|
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){
|
if (c == null){
|
||||||
String sVar = source.getSVar(amount);
|
String sVar = source.getSVar(amount);
|
||||||
// Generalize this
|
// Generalize this
|
||||||
|
|||||||
Reference in New Issue
Block a user