mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
* Breaching Hippocamp - Fixed that the target has to be "another" creature.
This commit is contained in:
parent
0d7d54b73f
commit
11df1dc059
1 changed files with 8 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue