foul-magics/Mage/src/main/java/mage/abilities/keyword/LivingWeaponAbility.java
xenohedron b78956d286
text errata updates: various "enters the battlefield" -> "enters" (#12626)
* enters the battlefield, -> enters,

* {this} enters the battlefield -> {this} enters

* EntersBattlefieldAbility

* , it enters

* enters the battlefield under your control -> you control enters

* rework some trigger phrase logic

* fix tests
2024-08-02 18:43:59 -04:00

27 lines
840 B
Java

package mage.abilities.keyword;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.CreateTokenAttachSourceEffect;
import mage.game.permanent.token.PhyrexianGermToken;
public class LivingWeaponAbility extends EntersBattlefieldTriggeredAbility {
public LivingWeaponAbility() {
super(new CreateTokenAttachSourceEffect(new PhyrexianGermToken()));
}
protected LivingWeaponAbility(final LivingWeaponAbility ability) {
super(ability);
}
@Override
public String getRule() {
return "Living weapon <i>(When this Equipment enters, " +
"create a 0/0 black Phyrexian Germ creature token, then attach this to it.)</i>";
}
@Override
public LivingWeaponAbility copy() {
return new LivingWeaponAbility(this);
}
}