mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
[NEC] Implemented Kami of Celebration
This commit is contained in:
parent
3bf5534ba7
commit
4b4174b00e
2 changed files with 86 additions and 0 deletions
85
Mage.Sets/src/mage/cards/k/KamiOfCelebration.java
Normal file
85
Mage.Sets/src/mage/cards/k/KamiOfCelebration.java
Normal file
|
@ -0,0 +1,85 @@
|
|||
package mage.cards.k;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.AttacksCreatureYouControlTriggeredAbility;
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.effects.common.ExileTopXMayPlayUntilEndOfTurnEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.predicate.permanent.ModifiedPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class KamiOfCelebration extends CardImpl {
|
||||
|
||||
private static final FilterControlledCreaturePermanent filter
|
||||
= new FilterControlledCreaturePermanent("a modified creature you control");
|
||||
|
||||
static {
|
||||
filter.add(ModifiedPredicate.instance);
|
||||
}
|
||||
|
||||
public KamiOfCelebration(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{R}");
|
||||
|
||||
this.subtype.add(SubType.SPIRIT);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Whenever a modified creature you control attacks, exile the top card of your library. You may play that card this turn.
|
||||
this.addAbility(new AttacksCreatureYouControlTriggeredAbility(
|
||||
new ExileTopXMayPlayUntilEndOfTurnEffect(1), false, filter
|
||||
));
|
||||
|
||||
// Whenever you cast a spell from exile, put a +1/+1 counter on target creature you control.
|
||||
this.addAbility(new KamiOfCelebrationAbility());
|
||||
}
|
||||
|
||||
private KamiOfCelebration(final KamiOfCelebration card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public KamiOfCelebration copy() {
|
||||
return new KamiOfCelebration(this);
|
||||
}
|
||||
}
|
||||
|
||||
class KamiOfCelebrationAbility extends SpellCastControllerTriggeredAbility {
|
||||
|
||||
KamiOfCelebrationAbility() {
|
||||
super(new AddCountersTargetEffect(CounterType.P1P1.createInstance()), false);
|
||||
this.addTarget(new TargetControlledCreaturePermanent());
|
||||
}
|
||||
|
||||
private KamiOfCelebrationAbility(final KamiOfCelebrationAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public KamiOfCelebrationAbility copy() {
|
||||
return new KamiOfCelebrationAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
return event.getZone() == Zone.EXILED && super.checkTrigger(event, game);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "Whenever you cast a spell from exile, put a +1/+1 counter on target creature you control.";
|
||||
}
|
||||
}
|
|
@ -73,6 +73,7 @@ public final class NeonDynastyCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Indomitable Archangel", 85, Rarity.MYTHIC, mage.cards.i.IndomitableArchangel.class));
|
||||
cards.add(new SetCardInfo("Ironsoul Enforcer", 7, Rarity.RARE, mage.cards.i.IronsoulEnforcer.class));
|
||||
cards.add(new SetCardInfo("Jace, Architect of Thought", 93, Rarity.MYTHIC, mage.cards.j.JaceArchitectOfThought.class));
|
||||
cards.add(new SetCardInfo("Kami of Celebration", 20, Rarity.RARE, mage.cards.k.KamiOfCelebration.class));
|
||||
cards.add(new SetCardInfo("Kappa Cannoneer", 14, Rarity.RARE, mage.cards.k.KappaCannoneer.class));
|
||||
cards.add(new SetCardInfo("Katsumasa, the Animator", 15, Rarity.RARE, mage.cards.k.KatsumasaTheAnimator.class));
|
||||
cards.add(new SetCardInfo("Kodama's Reach", 120, Rarity.COMMON, mage.cards.k.KodamasReach.class));
|
||||
|
|
Loading…
Reference in a new issue