Update Card.hasNoAbilities

For Adventure and Omen
This commit is contained in:
Hans Mackowiak
2025-08-13 10:01:10 +02:00
parent a1968ef9fd
commit ca16bf74f5

View File

@@ -3564,7 +3564,15 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars, ITr
return false;
}
for (SpellAbility sa : getSpellAbilities()) {
if (!(sa instanceof SpellPermanent && sa.isBasicSpell()) && !sa.isMorphUp() && !sa.isDisguiseUp()) {
// morph up and disguise up are not part of the card
if (sa.isMorphUp() || sa.isDisguiseUp()) {
continue;
}
// while Adventure and Omen are part of Secondary
if ((sa.isAdventure() || sa.isOmen()) && !getCurrentStateName().equals(sa.getCardState())) {
continue;
}
if (!(sa instanceof SpellPermanent && sa.isBasicSpell())) {
return false;
}
}