retrieve game from hostCard which is null in rarer cases than the passed SA

This commit is contained in:
Maxmtg
2013-04-26 02:38:29 +00:00
parent 882f81adcb
commit e8aa4c5fb2

View File

@@ -80,7 +80,7 @@ public class AbilityUtils {
public static List<Card> getDefinedCards(final Card hostCard, final String def, final SpellAbility sa) {
final List<Card> cards = new ArrayList<Card>();
final String defined = (def == null) ? "Self" : def; // default to Self
final GameState game = sa.getActivatingPlayer().getGame();
final GameState game = hostCard.getGame();
Card c = null;