mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Fix ChooseCardEffect crashing for e.g. Curse of the Pierced Heart on a planeswalker
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user