Fix Vanguards etc not displaying abilities

This commit is contained in:
friarsol
2019-12-19 23:23:39 -05:00
parent f0c8deb25e
commit c20b0c3620

View File

@@ -1983,8 +1983,8 @@ public class Card extends GameEntity implements Comparable<Card> {
boolean isNonAura = !type.hasSubtype("Aura"); boolean isNonAura = !type.hasSubtype("Aura");
for (final SpellAbility sa : state.getSpellAbilities()) { for (final SpellAbility sa : state.getSpellAbilities()) {
// only add abilities not Spell portions of cards // This code block is not shared by instants or sorceries. We don't need to check for permanence.
if (sa == null || sa.isSecondary() || !state.getType().isPermanent()) { if (sa == null || sa.isSecondary()) {
continue; continue;
} }
@@ -4321,8 +4321,6 @@ public class Card extends GameEntity implements Comparable<Card> {
/** /**
* use it only for real keywords and not with hidden ones * use it only for real keywords and not with hidden ones
* *
* @param Keyword k
* @param CardState state
* @return Int * @return Int
*/ */
public final int getKeywordMagnitude(final Keyword k, CardState state) { public final int getKeywordMagnitude(final Keyword k, CardState state) {