mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-12 16:58:57 +00:00
Update Card.hasNoAbilities
For Adventure and Omen
This commit is contained in:
@@ -3564,7 +3564,15 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars, ITr
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
for (SpellAbility sa : getSpellAbilities()) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user