mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
[LTR] Implement Isildur's Fateful Strike
This commit is contained in:
parent
ad9d8ec2df
commit
164d96352d
3 changed files with 91 additions and 0 deletions
|
|
@ -5,6 +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;
|
||||
|
|
@ -1736,6 +1737,11 @@ public class VerifyCardDataTest {
|
|||
fail(card, "abilities", "the back face of a double-faced card should be nightCard = true");
|
||||
}
|
||||
|
||||
// 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");
|
||||
}
|
||||
|
||||
if (card.getAbilities().containsClass(MutateAbility.class)) {
|
||||
fail(card, "abilities", "mutate cards aren't implemented and shouldn't be available");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue