From c20b0c3620b4076984dcd4110b46627a5c9b7160 Mon Sep 17 00:00:00 2001 From: friarsol Date: Thu, 19 Dec 2019 23:23:39 -0500 Subject: [PATCH] Fix Vanguards etc not displaying abilities --- forge-game/src/main/java/forge/game/card/Card.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/forge-game/src/main/java/forge/game/card/Card.java b/forge-game/src/main/java/forge/game/card/Card.java index e7fac44ec75..f2f4a7ce8e3 100644 --- a/forge-game/src/main/java/forge/game/card/Card.java +++ b/forge-game/src/main/java/forge/game/card/Card.java @@ -1983,8 +1983,8 @@ public class Card extends GameEntity implements Comparable { boolean isNonAura = !type.hasSubtype("Aura"); for (final SpellAbility sa : state.getSpellAbilities()) { - // only add abilities not Spell portions of cards - if (sa == null || sa.isSecondary() || !state.getType().isPermanent()) { + // This code block is not shared by instants or sorceries. We don't need to check for permanence. + if (sa == null || sa.isSecondary()) { continue; } @@ -4321,8 +4321,6 @@ public class Card extends GameEntity implements Comparable { /** * use it only for real keywords and not with hidden ones * - * @param Keyword k - * @param CardState state * @return Int */ public final int getKeywordMagnitude(final Keyword k, CardState state) {