mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
[NEO] Implemented Kaito Shizuki
This commit is contained in:
parent
21bc6926cf
commit
5845630af9
5 changed files with 166 additions and 0 deletions
|
|
@ -427,6 +427,7 @@ public enum SubType {
|
|||
HUATLI("Huatli", SubTypeSet.PlaneswalkerType),
|
||||
JACE("Jace", SubTypeSet.PlaneswalkerType),
|
||||
JESKA("Jeska", SubTypeSet.PlaneswalkerType),
|
||||
KAITO("Kaito", SubTypeSet.PlaneswalkerType),
|
||||
KARN("Karn", SubTypeSet.PlaneswalkerType),
|
||||
KASMINA("Kasmina", SubTypeSet.PlaneswalkerType),
|
||||
KAYA("Kaya", SubTypeSet.PlaneswalkerType),
|
||||
|
|
|
|||
|
|
@ -0,0 +1,39 @@
|
|||
package mage.game.command.emblems;
|
||||
|
||||
import mage.ObjectColor;
|
||||
import mage.abilities.common.DealsDamageToAPlayerAllTriggeredAbility;
|
||||
import mage.abilities.effects.common.search.SearchLibraryPutInPlayEffect;
|
||||
import mage.constants.SetTargetPointer;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterCreatureCard;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.ColorPredicate;
|
||||
import mage.game.command.Emblem;
|
||||
import mage.target.common.TargetCardInLibrary;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class KaitoShizukiEmblem extends Emblem {
|
||||
|
||||
private static final FilterCard filter = new FilterCreatureCard("a blue or black creature card");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.or(
|
||||
new ColorPredicate(ObjectColor.BLUE),
|
||||
new ColorPredicate(ObjectColor.BLACK)
|
||||
));
|
||||
}
|
||||
|
||||
// −7: You get an emblem with "Whenever a creature you control deals combat damage to a player, search your library for a blue or black creature card, put it onto the battlefield, then shuffle."
|
||||
public KaitoShizukiEmblem() {
|
||||
this.setName("Emblem Kaito");
|
||||
this.setExpansionSetCodeForImage("NEO");
|
||||
this.getAbilities().add(new DealsDamageToAPlayerAllTriggeredAbility(
|
||||
new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(filter)),
|
||||
StaticFilters.FILTER_CONTROLLED_A_CREATURE, false,
|
||||
SetTargetPointer.NONE, true
|
||||
));
|
||||
}
|
||||
}
|
||||
35
Mage/src/main/java/mage/game/permanent/token/NinjaToken.java
Normal file
35
Mage/src/main/java/mage/game/permanent/token/NinjaToken.java
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.combat.CantBeBlockedSourceEffect;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class NinjaToken extends TokenImpl {
|
||||
|
||||
public NinjaToken() {
|
||||
super("Ninja Token", "1/1 blue Ninja creature token with \"This creature can't be blocked.\"");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setBlue(true);
|
||||
subtype.add(SubType.NINJA);
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
|
||||
this.addAbility(new SimpleStaticAbility(new CantBeBlockedSourceEffect().setText("this creature can't be blocked")));
|
||||
availableImageSetCodes = Arrays.asList("NEO");
|
||||
}
|
||||
|
||||
private NinjaToken(final NinjaToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public NinjaToken copy() {
|
||||
return new NinjaToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue