getCardsfromTargets: Add sanity check

This commit is contained in:
Bug Hunter
2021-03-22 14:45:37 +00:00
committed by Hans Mackowiak
parent 17352940ab
commit e6c60f389f

View File

@@ -241,8 +241,8 @@ public abstract class SpellAbilityEffect {
protected final static List<Card> getCardsfromTargets(final SpellAbility sa) { protected final static List<Card> getCardsfromTargets(final SpellAbility sa) {
List<Card> cards = getTargetCards(sa); List<Card> cards = getTargetCards(sa);
List<SpellAbility> spells = getTargetSpells(sa); // some card effects can also target a spell
for (SpellAbility s : spells) { for (SpellAbility s : sa.getTargets().getTargetSpells()) {
cards.add(s.getHostCard()); cards.add(s.getHostCard());
} }
return cards; return cards;