add missing quotes in rule text
package mage.cards.i;
+import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
import mage.abilities.common.SimpleStaticAbility;
@@ -14,36 +15,38 @@ import mage.filter.StaticFilters;
import mage.target.TargetPermanent;
import mage.target.common.TargetCreaturePermanent;
-import java.util.UUID;
-
/**
* @author TheElk801
*/
public final class InevitableEnd extends CardImpl {
public InevitableEnd(UUID ownerId, CardSetInfo setInfo) {
- super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{B}");
+ super(ownerId, setInfo, new CardType[] {CardType.ENCHANTMENT},
+ "{2}{B}");
this.subtype.add(SubType.AURA);
// Enchant creature
TargetPermanent auraTarget = new TargetCreaturePermanent();
this.getSpellAbility().addTarget(auraTarget);
- this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
+ this.getSpellAbility().addEffect(
+ new AttachEffect(Outcome.BoostCreature));
Ability ability = new EnchantAbility(auraTarget.getTargetName());
this.addAbility(ability);
- // Enchanted creature has "At the beginning of your upkeep, sacrifice a creature."
+ // Enchanted creature has "At the beginning of your upkeep, sacrifice a
+ // creature."
+ BeginningOfUpkeepTriggeredAbility triggeredAbility =
+ new BeginningOfUpkeepTriggeredAbility(
+ new SacrificeControllerEffect(
+ StaticFilters.FILTER_PERMANENT_CREATURE, 1, null),
+ TargetController.YOU, false);
this.addAbility(new SimpleStaticAbility(new GainAbilityAttachedEffect(
- new BeginningOfUpkeepTriggeredAbility(new SacrificeControllerEffect(
- StaticFilters.FILTER_PERMANENT_CREATURE, 1, null
- ), TargetController.YOU, false), AttachmentType.AURA
- )));
+ triggeredAbility, AttachmentType.AURA, Duration.WhileOnBattlefield,
+ "Enchanted creature has \"" + triggeredAbility.getRule() + "\"")));
}
- private InevitableEnd(final InevitableEnd card) {
- super(card);
- }
+ private InevitableEnd(final InevitableEnd card) { super(card); }
@Override
public InevitableEnd copy() {
