forked from External/mage
Replace Overriden getTriggerPhrase() with setTriggerPhrase() usage (#9343)
This commit is contained in:
parent
188e6dd8c1
commit
ebdb6b53a4
406 changed files with 918 additions and 2665 deletions
|
|
@ -14,20 +14,17 @@ import mage.game.permanent.Permanent;
|
|||
*/
|
||||
public class BecomesTappedAttachedTriggeredAbility extends TriggeredAbilityImpl {
|
||||
|
||||
private final String description;
|
||||
|
||||
public BecomesTappedAttachedTriggeredAbility(Effect effect, String description) {
|
||||
this(effect, description, false);
|
||||
}
|
||||
|
||||
public BecomesTappedAttachedTriggeredAbility(Effect effect, String description, boolean isOptional) {
|
||||
super(Zone.BATTLEFIELD, effect, isOptional);
|
||||
this.description = description;
|
||||
setTriggerPhrase("Whenever " + description + " becomes tapped, ");
|
||||
}
|
||||
|
||||
public BecomesTappedAttachedTriggeredAbility(final BecomesTappedAttachedTriggeredAbility ability) {
|
||||
super(ability);
|
||||
this.description = ability.description;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -49,9 +46,4 @@ public class BecomesTappedAttachedTriggeredAbility extends TriggeredAbilityImpl
|
|||
Permanent enchanted = game.getPermanent(enchantment.getAttachedTo());
|
||||
return enchanted != null && event.getTargetId().equals(enchanted.getId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTriggerPhrase() {
|
||||
return "Whenever " + description + " becomes tapped, " ;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue