mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
[NEC] Implemented Chishiro, the Shattered Blade
This commit is contained in:
parent
0909ecf6c4
commit
c77459b7a0
3 changed files with 96 additions and 0 deletions
67
Mage.Sets/src/mage/cards/c/ChishiroTheShatteredBlade.java
Normal file
67
Mage.Sets/src/mage/cards/c/ChishiroTheShatteredBlade.java
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldControlledTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersAllEffect;
|
||||
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.counters.CounterType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.permanent.ModifiedPredicate;
|
||||
import mage.game.permanent.token.SpiritRedToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ChishiroTheShatteredBlade extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterPermanent("an Aura or Equipment");
|
||||
private static final FilterPermanent filter2 = new FilterControlledPermanent("modified creature you control");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.or(
|
||||
SubType.AURA.getPredicate(),
|
||||
SubType.EQUIPMENT.getPredicate()
|
||||
));
|
||||
filter2.add(ModifiedPredicate.instance);
|
||||
}
|
||||
|
||||
public ChishiroTheShatteredBlade(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{R}{G}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.SNAKE);
|
||||
this.subtype.add(SubType.SAMURAI);
|
||||
this.power = new MageInt(4);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Whenever an Aura or Equipment enters the battlefield under your control, create a 2/2 red Spirit creature token.
|
||||
this.addAbility(new EntersBattlefieldControlledTriggeredAbility(
|
||||
new CreateTokenEffect(new SpiritRedToken()), filter
|
||||
));
|
||||
|
||||
// At the beginning of your end step, put a +1/+1 counter on each modified creature you control.
|
||||
this.addAbility(new BeginningOfEndStepTriggeredAbility(new AddCountersAllEffect(
|
||||
CounterType.P1P1.createInstance(), filter2
|
||||
), TargetController.YOU, false));
|
||||
}
|
||||
|
||||
private ChishiroTheShatteredBlade(final ChishiroTheShatteredBlade card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ChishiroTheShatteredBlade copy() {
|
||||
return new ChishiroTheShatteredBlade(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -19,6 +19,7 @@ public final class NeonDynastyCommander extends ExpansionSet {
|
|||
super("Neon Dynasty Commander", "NEC", ExpansionSet.buildDate(2022, 2, 18), SetType.SUPPLEMENTAL);
|
||||
this.hasBasicLands = false;
|
||||
|
||||
cards.add(new SetCardInfo("Chishiro, the Shattered Blade", 1, Rarity.MYTHIC, mage.cards.c.ChishiroTheShatteredBlade.class));
|
||||
cards.add(new SetCardInfo("Kotori, Pilot Prodigy", 2, Rarity.MYTHIC, mage.cards.k.KotoriPilotProdigy.class));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,28 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SpiritRedToken extends TokenImpl {
|
||||
|
||||
public SpiritRedToken() {
|
||||
super("Spirit token", "2/2 red Spirit creature token");
|
||||
cardType.add(CardType.CREATURE);
|
||||
subtype.add(SubType.SPIRIT);
|
||||
color.setRed(true);
|
||||
power = new MageInt(2);
|
||||
toughness = new MageInt(2);
|
||||
}
|
||||
|
||||
public SpiritRedToken(final SpiritRedToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public SpiritRedToken copy() {
|
||||
return new SpiritRedToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue