forked from External/mage
54 lines
1.8 KiB
Java
54 lines
1.8 KiB
Java
|
|
package mage.cards.g;
|
|
|
|
import java.util.UUID;
|
|
import mage.MageInt;
|
|
import mage.abilities.Ability;
|
|
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
|
import mage.abilities.effects.common.UntapTargetEffect;
|
|
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
|
import mage.abilities.effects.common.continuous.GainControlTargetEffect;
|
|
import mage.abilities.keyword.HasteAbility;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.Duration;
|
|
import mage.constants.SubType;
|
|
import mage.filter.FilterPermanent;
|
|
import mage.target.TargetPermanent;
|
|
|
|
/**
|
|
*
|
|
* @author Loki
|
|
*/
|
|
public final class Goatnapper extends CardImpl {
|
|
|
|
private static final FilterPermanent filter = new FilterPermanent("Goat");
|
|
|
|
static {
|
|
filter.add(SubType.GOAT.getPredicate());
|
|
}
|
|
|
|
public Goatnapper(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{R}");
|
|
this.subtype.add(SubType.GOBLIN);
|
|
this.subtype.add(SubType.ROGUE);
|
|
|
|
this.power = new MageInt(2);
|
|
this.toughness = new MageInt(2);
|
|
Ability ability = new EntersBattlefieldTriggeredAbility(new UntapTargetEffect(), false);
|
|
ability.addTarget(new TargetPermanent(filter));
|
|
ability.addEffect(new GainControlTargetEffect(Duration.EndOfTurn).setText("and gain control of it until end of turn"));
|
|
ability.addEffect(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn).setText("It gains haste until end of turn"));
|
|
this.addAbility(ability);
|
|
}
|
|
|
|
private Goatnapper(final Goatnapper card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public Goatnapper copy() {
|
|
return new Goatnapper(this);
|
|
}
|
|
}
|