mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28: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);
|
CardCollectionView choices = game.getCardsIn(choiceZone);
|
||||||
if (sa.hasParam("Choices")) {
|
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")) {
|
if (sa.hasParam("TargetControls")) {
|
||||||
choices = CardLists.filterControlledBy(choices, tgtPlayers.get(0));
|
choices = CardLists.filterControlledBy(choices, tgtPlayers.get(0));
|
||||||
|
|||||||
Reference in New Issue
Block a user