- Fix ChooseCardEffect crashing for e.g. Curse of the Pierced Heart on a planeswalker

This commit is contained in:
Agetian
2019-07-29 19:42:12 +03:00
parent 6fa513fefd
commit 37fe37d5d9

View File

@@ -52,7 +52,7 @@ public class ChooseCardEffect extends SpellAbilityEffect {
}
CardCollectionView choices = game.getCardsIn(choiceZone);
if (sa.hasParam("Choices")) {
choices = CardLists.getValidCards(choices, sa.getParam("Choices"), activator, host);
choices = CardLists.getValidCards(choices, sa.getParam("Choices"), activator, host, sa);
}
if (sa.hasParam("TargetControls")) {
choices = CardLists.filterControlledBy(choices, tgtPlayers.get(0));