forked from External/mage
* 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
27 lines
840 B
Java
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);
|
|
}
|
|
}
|