* Breaching Hippocamp - Fixed that the target has to be "another" creature.

This commit is contained in:
LevelX2 2014-02-02 20:38:11 +01:00
parent 0d7d54b73f
commit 11df1dc059

View file

@ -36,6 +36,8 @@ import mage.abilities.keyword.FlashAbility;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.filter.common.FilterControlledCreaturePermanent;
import mage.filter.predicate.permanent.AnotherPredicate;
import mage.target.common.TargetControlledCreaturePermanent;
/**
@ -44,6 +46,11 @@ import mage.target.common.TargetControlledCreaturePermanent;
*/
public class BreachingHippocamp extends CardImpl<BreachingHippocamp> {
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("another target creature you control");
static {
filter.add(new AnotherPredicate());
}
public BreachingHippocamp(UUID ownerId) {
super(ownerId, 43, "Breaching Hippocamp", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{3}{U}");
this.expansionSetCode = "THS";
@ -58,7 +65,7 @@ public class BreachingHippocamp extends CardImpl<BreachingHippocamp> {
this.addAbility(FlashAbility.getInstance());
// When Breaching Hippocamp enters the battlefield, untap another target creature you control.
Ability ability = new EntersBattlefieldTriggeredAbility(new UntapTargetEffect(), false);
ability.addTarget(new TargetControlledCreaturePermanent(true));
ability.addTarget(new TargetControlledCreaturePermanent(1,1,filter, false, true));
this.addAbility(ability);
}