mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
refactor: improved some error messages/tests
This commit is contained in:
parent
7f8526192f
commit
f0da749e0a
3 changed files with 11 additions and 7 deletions
|
|
@ -5,10 +5,7 @@ import mage.MageObject;
|
|||
import mage.ObjectColor;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.common.LegendarySpellAbility;
|
||||
import mage.abilities.common.SagaAbility;
|
||||
import mage.abilities.common.WerewolfBackTriggeredAbility;
|
||||
import mage.abilities.common.WerewolfFrontTriggeredAbility;
|
||||
import mage.abilities.common.*;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.FightTargetsEffect;
|
||||
import mage.abilities.effects.common.counter.ProliferateEffect;
|
||||
|
|
@ -1734,6 +1731,11 @@ public class VerifyCardDataTest {
|
|||
fail(card, "abilities", "the back face of a double-faced card should be nightCard = true");
|
||||
}
|
||||
|
||||
// special check: siege ability must be used in double faced cards only
|
||||
if (card.getAbilities().containsClass(SiegeAbility.class) && card.getSecondCardFace() == null) {
|
||||
fail(card, "abilities", "miss second side settings in card with siege ability");
|
||||
}
|
||||
|
||||
// special check: legendary spells need to have legendary spell ability
|
||||
if (card.isLegendary() && !card.isPermanent() && !card.getAbilities().containsClass(LegendarySpellAbility.class)) {
|
||||
fail(card, "abilities", "legendary nonpermanent cards need to have LegendarySpellAbility");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue