mirror of
https://github.com/correl/mage.git
synced 2024-12-27 20:06:31 +00:00
[CMR] Implemented Anara, World Familiar
This commit is contained in:
parent
73c8c5737d
commit
bbb15f6cd6
2 changed files with 64 additions and 0 deletions
63
Mage.Sets/src/mage/cards/a/AnaraWorldFamiliar.java
Normal file
63
Mage.Sets/src/mage/cards/a/AnaraWorldFamiliar.java
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
package mage.cards.a;
|
||||||
|
|
||||||
|
import mage.MageInt;
|
||||||
|
import mage.abilities.common.SimpleStaticAbility;
|
||||||
|
import mage.abilities.condition.common.MyTurnCondition;
|
||||||
|
import mage.abilities.decorator.ConditionalContinuousEffect;
|
||||||
|
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||||
|
import mage.abilities.keyword.IndestructibleAbility;
|
||||||
|
import mage.abilities.keyword.PartnerAbility;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.Duration;
|
||||||
|
import mage.constants.SubType;
|
||||||
|
import mage.constants.SuperType;
|
||||||
|
import mage.filter.FilterPermanent;
|
||||||
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
|
import mage.filter.predicate.permanent.CommanderPredicate;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class AnaraWorldFamiliar extends CardImpl {
|
||||||
|
|
||||||
|
private static final FilterPermanent filter = new FilterControlledPermanent();
|
||||||
|
|
||||||
|
static {
|
||||||
|
filter.add(CommanderPredicate.instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
public AnaraWorldFamiliar(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}");
|
||||||
|
|
||||||
|
this.addSuperType(SuperType.LEGENDARY);
|
||||||
|
this.subtype.add(SubType.WOLF);
|
||||||
|
this.subtype.add(SubType.BEAST);
|
||||||
|
this.power = new MageInt(4);
|
||||||
|
this.toughness = new MageInt(4);
|
||||||
|
|
||||||
|
// As long as it's your turn, commanders you control have indestructible.
|
||||||
|
this.addAbility(new SimpleStaticAbility(new ConditionalContinuousEffect(
|
||||||
|
new GainAbilityControlledEffect(
|
||||||
|
IndestructibleAbility.getInstance(),
|
||||||
|
Duration.WhileOnBattlefield, filter
|
||||||
|
), MyTurnCondition.instance, "as long as it's your turn, " +
|
||||||
|
"commanders you control have indestructible"
|
||||||
|
)));
|
||||||
|
|
||||||
|
// Partner
|
||||||
|
this.addAbility(PartnerAbility.getInstance());
|
||||||
|
}
|
||||||
|
|
||||||
|
private AnaraWorldFamiliar(final AnaraWorldFamiliar card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AnaraWorldFamiliar copy() {
|
||||||
|
return new AnaraWorldFamiliar(this);
|
||||||
|
}
|
||||||
|
}
|
|
@ -36,6 +36,7 @@ public final class CommanderLegends extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Alena, Kessig Trapper", 160, Rarity.UNCOMMON, mage.cards.a.AlenaKessigTrapper.class));
|
cards.add(new SetCardInfo("Alena, Kessig Trapper", 160, Rarity.UNCOMMON, mage.cards.a.AlenaKessigTrapper.class));
|
||||||
cards.add(new SetCardInfo("Amareth, the Lustrous", 266, Rarity.RARE, mage.cards.a.AmarethTheLustrous.class));
|
cards.add(new SetCardInfo("Amareth, the Lustrous", 266, Rarity.RARE, mage.cards.a.AmarethTheLustrous.class));
|
||||||
cards.add(new SetCardInfo("Amphin Mutineer", 55, Rarity.RARE, mage.cards.a.AmphinMutineer.class));
|
cards.add(new SetCardInfo("Amphin Mutineer", 55, Rarity.RARE, mage.cards.a.AmphinMutineer.class));
|
||||||
|
cards.add(new SetCardInfo("Anara, World Familiar", 214, Rarity.UNCOMMON, mage.cards.a.AnaraWorldFamiliar.class));
|
||||||
cards.add(new SetCardInfo("Ancestral Blade", 5, Rarity.COMMON, mage.cards.a.AncestralBlade.class));
|
cards.add(new SetCardInfo("Ancestral Blade", 5, Rarity.COMMON, mage.cards.a.AncestralBlade.class));
|
||||||
cards.add(new SetCardInfo("Ancient Animus", 215, Rarity.COMMON, mage.cards.a.AncientAnimus.class));
|
cards.add(new SetCardInfo("Ancient Animus", 215, Rarity.COMMON, mage.cards.a.AncientAnimus.class));
|
||||||
cards.add(new SetCardInfo("Annoyed Altisaur", 216, Rarity.COMMON, mage.cards.a.AnnoyedAltisaur.class));
|
cards.add(new SetCardInfo("Annoyed Altisaur", 216, Rarity.COMMON, mage.cards.a.AnnoyedAltisaur.class));
|
||||||
|
|
Loading…
Reference in a new issue