mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
retrieve game from hostCard which is null in rarer cases than the passed SA
This commit is contained in:
@@ -80,7 +80,7 @@ public class AbilityUtils {
|
|||||||
public static List<Card> getDefinedCards(final Card hostCard, final String def, final SpellAbility sa) {
|
public static List<Card> getDefinedCards(final Card hostCard, final String def, final SpellAbility sa) {
|
||||||
final List<Card> cards = new ArrayList<Card>();
|
final List<Card> cards = new ArrayList<Card>();
|
||||||
final String defined = (def == null) ? "Self" : def; // default to Self
|
final String defined = (def == null) ? "Self" : def; // default to Self
|
||||||
final GameState game = sa.getActivatingPlayer().getGame();
|
final GameState game = hostCard.getGame();
|
||||||
|
|
||||||
Card c = null;
|
Card c = null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user