Skip to content

Commit

Permalink
[ACR] Implement Eivor, Battle-Ready
Browse files Browse the repository at this point in the history
  • Loading branch information
theelk801 committed Feb 24, 2024
1 parent 13cfb53 commit 9698efc
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
59 changes: 59 additions & 0 deletions Mage.Sets/src/mage/cards/e/EivorBattleReady.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
package mage.cards.e;

import mage.MageInt;
import mage.abilities.common.AttacksTriggeredAbility;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
import mage.abilities.effects.common.DamagePlayersEffect;
import mage.abilities.hint.Hint;
import mage.abilities.hint.ValueHint;
import mage.abilities.keyword.HasteAbility;
import mage.abilities.keyword.VigilanceAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.constants.TargetController;
import mage.filter.common.FilterControlledPermanent;

import java.util.UUID;

/**
* @author TheElk801
*/
public final class EivorBattleReady extends CardImpl {

private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(new FilterControlledPermanent(SubType.EQUIPMENT));
private static final Hint hint = new ValueHint("Equipment you control", xValue);

public EivorBattleReady(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}{W}");

this.supertype.add(SuperType.LEGENDARY);
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.ASSASSIN);
this.subtype.add(SubType.WARRIOR);
this.power = new MageInt(5);
this.toughness = new MageInt(5);

// Vigilance
this.addAbility(VigilanceAbility.getInstance());

// Haste
this.addAbility(HasteAbility.getInstance());

// Whenever Eivor, Battle-Ready attacks, it deals damage equal to the number of Equipment you control to each opponent.
this.addAbility(new AttacksTriggeredAbility(new DamagePlayersEffect(xValue, TargetController.OPPONENT)
.setText("it deals damage equal to the number of Equipment you control to each opponent")));
}

private EivorBattleReady(final EivorBattleReady card) {
super(card);
}

@Override
public EivorBattleReady copy() {
return new EivorBattleReady(this);
}
}
1 change: 1 addition & 0 deletions Mage.Sets/src/mage/sets/AssassinsCreed.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ private AssassinsCreed() {
this.hasBoosters = false;

cards.add(new SetCardInfo("Cover of Darkness", 89, Rarity.RARE, mage.cards.c.CoverOfDarkness.class));
cards.add(new SetCardInfo("Eivor, Battle-Ready", 274, Rarity.MYTHIC, mage.cards.e.EivorBattleReady.class));
cards.add(new SetCardInfo("Sword of Feast and Famine", 99, Rarity.MYTHIC, mage.cards.s.SwordOfFeastAndFamine.class));
cards.add(new SetCardInfo("Temporal Trespass", 86, Rarity.MYTHIC, mage.cards.t.TemporalTrespass.class));
}
Expand Down

0 comments on commit 9698efc

Please sign in to comment.