forked from External/mage
41 lines
1.2 KiB
Java
41 lines
1.2 KiB
Java
package mage.cards.t;
|
|
|
|
import mage.MageInt;
|
|
import mage.abilities.common.BecomesTargetTriggeredAbility;
|
|
import mage.abilities.effects.common.continuous.BoostSourceEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.Duration;
|
|
import mage.constants.SubType;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* @author Backfir3
|
|
*/
|
|
public final class TaskForce extends CardImpl {
|
|
|
|
public TaskForce(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}");
|
|
this.subtype.add(SubType.HUMAN);
|
|
this.subtype.add(SubType.REBEL);
|
|
|
|
this.power = new MageInt(1);
|
|
this.toughness = new MageInt(3);
|
|
|
|
// Whenever Task Force becomes the target of a spell or ability, it gets +0/+3 until end of turn.
|
|
this.addAbility(new BecomesTargetTriggeredAbility(
|
|
new BoostSourceEffect(0, 3, Duration.EndOfTurn, "it")
|
|
).setTriggerPhrase("Whenever {this} becomes the target of a spell or ability, "));
|
|
}
|
|
|
|
private TaskForce(final TaskForce card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public TaskForce copy() {
|
|
return new TaskForce(this);
|
|
}
|
|
}
|