mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
[MID] Implemented Adeline, Resplendent Cathar
This commit is contained in:
parent
8642f8c460
commit
87e2efd033
2 changed files with 80 additions and 0 deletions
79
Mage.Sets/src/mage/cards/a/AdelineResplendentCathar.java
Normal file
79
Mage.Sets/src/mage/cards/a/AdelineResplendentCathar.java
Normal file
|
@ -0,0 +1,79 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.AttacksWithCreaturesTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.dynamicvalue.common.CreaturesYouControlCount;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.continuous.SetPowerSourceEffect;
|
||||
import mage.abilities.hint.common.CreaturesYouControlHint;
|
||||
import mage.constants.*;
|
||||
import mage.abilities.keyword.VigilanceAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.token.HumanToken;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author weirddan455
|
||||
*/
|
||||
public final class AdelineResplendentCathar extends CardImpl {
|
||||
|
||||
public AdelineResplendentCathar(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}{W}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.KNIGHT);
|
||||
this.power = new MageInt(0);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Vigilance
|
||||
this.addAbility(VigilanceAbility.getInstance());
|
||||
|
||||
// Adeline, Resplendent Cathar's power is equal to the number of creatures you control.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerSourceEffect(
|
||||
CreaturesYouControlCount.instance, Duration.EndOfGame)).addHint(CreaturesYouControlHint.instance)
|
||||
);
|
||||
|
||||
// Whenever you attack, for each opponent, create a 1/1 white Human creature token that's tapped and attacking that player or a planeswalker they control.
|
||||
this.addAbility(new AttacksWithCreaturesTriggeredAbility(new AdelineResplendentCatharEffect(), 1));
|
||||
}
|
||||
|
||||
private AdelineResplendentCathar(final AdelineResplendentCathar card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AdelineResplendentCathar copy() {
|
||||
return new AdelineResplendentCathar(this);
|
||||
}
|
||||
}
|
||||
|
||||
class AdelineResplendentCatharEffect extends OneShotEffect {
|
||||
|
||||
public AdelineResplendentCatharEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "for each opponent, create a 1/1 white Human creature token that's tapped and attacking that player or a planeswalker they control";
|
||||
}
|
||||
|
||||
private AdelineResplendentCatharEffect(final AdelineResplendentCatharEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AdelineResplendentCatharEffect copy() {
|
||||
return new AdelineResplendentCatharEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
for (UUID opponentId : game.getOpponents(source.getControllerId())) {
|
||||
new HumanToken().putOntoBattlefield(1, game, source, source.getControllerId(), true, true, opponentId);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -32,6 +32,7 @@ public final class InnistradMidnightHunt extends ExpansionSet {
|
|||
this.numBoosterDoubleFaced = 1;
|
||||
|
||||
cards.add(new SetCardInfo("Abandon the Post", 127, Rarity.COMMON, mage.cards.a.AbandonThePost.class));
|
||||
cards.add(new SetCardInfo("Adeline, Resplendent Cathar", 1, Rarity.RARE, mage.cards.a.AdelineResplendentCathar.class));
|
||||
cards.add(new SetCardInfo("Ambitious Farmhand", 2, Rarity.UNCOMMON, mage.cards.a.AmbitiousFarmhand.class));
|
||||
cards.add(new SetCardInfo("Angelfire Ignition", 209, Rarity.RARE, mage.cards.a.AngelfireIgnition.class));
|
||||
cards.add(new SetCardInfo("Arcane Infusion", 210, Rarity.UNCOMMON, mage.cards.a.ArcaneInfusion.class));
|
||||
|
|
Loading…
Reference in a new issue