foul-magics/Mage/src/main/java/mage/game/command/emblems/KaitoShizukiEmblem.java

40 lines
1.5 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
import mage.constants.Zone;
/**
* @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(
Zone.COMMAND, new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(filter)),
StaticFilters.FILTER_CONTROLLED_A_CREATURE, false,
SetTargetPointer.NONE, true, false
));
}
}