[LTR] Fix Morgul-Knife Wound text (#10477)

This commit is contained in:
Artemis Kearney 2023-06-16 20:00:26 -05:00 committed by GitHub
parent 7c70add7fd
commit 8d99524660
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,7 @@ import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.costs.common.PayLifeCost;
import mage.abilities.effects.common.AttachEffect;
import mage.abilities.effects.common.DoIfCostPaid;
import mage.abilities.effects.common.DoUnlessControllerPaysEffect;
import mage.abilities.effects.common.ExileSourceEffect;
import mage.abilities.effects.common.continuous.BoostEnchantedEffect;
import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect;
@ -37,10 +38,11 @@ public final class MorgulKnifeWound extends CardImpl {
// Enchanted creature gets -3/-0 and has "At the beginning of your upkeep, exile this creature unless you pay 2 life."
Ability ability = new SimpleStaticAbility(new BoostEnchantedEffect(-3, 0));
ability.addEffect(new GainAbilityAttachedEffect(new BeginningOfUpkeepTriggeredAbility(
new DoIfCostPaid(
null, new ExileSourceEffect(), new PayLifeCost(2)
.setText("exile this creature unless you pay 2 life")
), TargetController.YOU, false
new DoUnlessControllerPaysEffect(
new ExileSourceEffect(),
new PayLifeCost(2),
"Pay 2 life to prevent {this} from being exiled?"
).setText("exile {this} unless you pay 2 life"), TargetController.YOU, false
), AttachmentType.AURA).setText("and has \"At the beginning of your upkeep, exile this creature unless you pay 2 life.\""));
this.addAbility(ability);
}