Allow to set custom text for provoke ability.

This commit is contained in:
LevelX2 2016-10-15 07:34:22 +02:00
parent 636fdb0afb
commit a74e0c2ed3
2 changed files with 7 additions and 3 deletions

View file

@ -41,13 +41,13 @@ import mage.constants.CardType;
public class TwilekSeductess extends CardImpl {
public TwilekSeductess(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{G}");
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}");
this.subtype.add("Twi'lek");
this.power = new MageInt(2);
this.toughness = new MageInt(2);
// Whenever Twi'lek Seductess attacks, you may have target creature defending player controls untap and block it if able.
this.addAbility(new ProvokeAbility());
this.addAbility(new ProvokeAbility("Whenever {this} attacks, you may have target creature defending player controls untap and block it if able."));
}

View file

@ -53,7 +53,11 @@ import mage.target.common.TargetCreaturePermanent;
public class ProvokeAbility extends AttacksTriggeredAbility {
public ProvokeAbility() {
super(new UntapTargetEffect(), true, "Provoke <i>(Whenever this attacks, you may have target creature defending player controls untap and block it if able.)</i>");
this("Provoke <i>(Whenever this attacks, you may have target creature defending player controls untap and block it if able.)</i>");
}
public ProvokeAbility(String text) {
super(new UntapTargetEffect(), true, text);
this.addEffect(new ProvokeRequirementEffect());
}