forked from magefree/mage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters