* Higure the Still Wind - Fixed that the searched card was not revealed (fixes #3268).

This commit is contained in:
LevelX2 2017-05-17 11:24:54 +02:00
parent 1362637561
commit d6ddff8d68

View file

@ -27,6 +27,7 @@
*/
package mage.cards.h;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
@ -47,8 +48,6 @@ import mage.filter.predicate.mageobject.SubtypePredicate;
import mage.target.common.TargetCardInLibrary;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
/**
*
* @author LevelX2
@ -57,6 +56,7 @@ public class HigureTheStillWind extends CardImpl {
private static final FilterCard filter = new FilterCard("Ninja card");
private static final FilterCreaturePermanent filterCreature = new FilterCreaturePermanent("Ninja creature");
static {
filter.add(new SubtypePredicate("Ninja"));
filterCreature.add((new SubtypePredicate("Ninja")));
@ -75,14 +75,13 @@ public class HigureTheStillWind extends CardImpl {
this.addAbility(new NinjutsuAbility(new ManaCostsImpl("{2}{U}{U}")));
// Whenever Higure, the Still Wind deals combat damage to a player, you may search your library for a Ninja card, reveal it, and put it into your hand. If you do, shuffle your library.
this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter)), true));
this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, false), true));
// {2}: Target Ninja creature can't be blocked this turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedTargetEffect(), new GenericManaCost(2));
ability.addTarget(new TargetCreaturePermanent(filterCreature));
this.addAbility(ability);
}
public HigureTheStillWind(final HigureTheStillWind card) {