mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Merge pull request #6583 from timhae/issue6494_followup
add missing quotes in rule text
This commit is contained in:
commit
587f05dea4
2 changed files with 16 additions and 13 deletions
|
@ -62,7 +62,7 @@ class HeliodsPunishmentLoseAllAbilitiesEnchantedEffect extends ContinuousEffectI
|
||||||
|
|
||||||
public HeliodsPunishmentLoseAllAbilitiesEnchantedEffect() {
|
public HeliodsPunishmentLoseAllAbilitiesEnchantedEffect() {
|
||||||
super(Duration.WhileOnBattlefield, Layer.AbilityAddingRemovingEffects_6, SubLayer.NA, Outcome.LoseAbility);
|
super(Duration.WhileOnBattlefield, Layer.AbilityAddingRemovingEffects_6, SubLayer.NA, Outcome.LoseAbility);
|
||||||
staticText = "It loses all abilities and has \"{T}: Remove a task counter from {this}. Then if it has no task counters on it, destroy {this}.\" ";
|
staticText = "It loses all abilities and has \"{T}: Remove a task counter from {this}. Then if it has no task counters on it, destroy {this}.\"";
|
||||||
}
|
}
|
||||||
|
|
||||||
public HeliodsPunishmentLoseAllAbilitiesEnchantedEffect(final HeliodsPunishmentLoseAllAbilitiesEnchantedEffect effect) {
|
public HeliodsPunishmentLoseAllAbilitiesEnchantedEffect(final HeliodsPunishmentLoseAllAbilitiesEnchantedEffect effect) {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package mage.cards.i;
|
package mage.cards.i;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
|
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
|
||||||
import mage.abilities.common.SimpleStaticAbility;
|
import mage.abilities.common.SimpleStaticAbility;
|
||||||
|
@ -14,36 +15,38 @@ import mage.filter.StaticFilters;
|
||||||
import mage.target.TargetPermanent;
|
import mage.target.TargetPermanent;
|
||||||
import mage.target.common.TargetCreaturePermanent;
|
import mage.target.common.TargetCreaturePermanent;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author TheElk801
|
* @author TheElk801
|
||||||
*/
|
*/
|
||||||
public final class InevitableEnd extends CardImpl {
|
public final class InevitableEnd extends CardImpl {
|
||||||
|
|
||||||
public InevitableEnd(UUID ownerId, CardSetInfo setInfo) {
|
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);
|
this.subtype.add(SubType.AURA);
|
||||||
|
|
||||||
// Enchant creature
|
// Enchant creature
|
||||||
TargetPermanent auraTarget = new TargetCreaturePermanent();
|
TargetPermanent auraTarget = new TargetCreaturePermanent();
|
||||||
this.getSpellAbility().addTarget(auraTarget);
|
this.getSpellAbility().addTarget(auraTarget);
|
||||||
this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
|
this.getSpellAbility().addEffect(
|
||||||
|
new AttachEffect(Outcome.BoostCreature));
|
||||||
Ability ability = new EnchantAbility(auraTarget.getTargetName());
|
Ability ability = new EnchantAbility(auraTarget.getTargetName());
|
||||||
this.addAbility(ability);
|
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(
|
this.addAbility(new SimpleStaticAbility(new GainAbilityAttachedEffect(
|
||||||
new BeginningOfUpkeepTriggeredAbility(new SacrificeControllerEffect(
|
triggeredAbility, AttachmentType.AURA, Duration.WhileOnBattlefield,
|
||||||
StaticFilters.FILTER_PERMANENT_CREATURE, 1, null
|
"Enchanted creature has \"" + triggeredAbility.getRule() + "\"")));
|
||||||
), TargetController.YOU, false), AttachmentType.AURA
|
|
||||||
)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private InevitableEnd(final InevitableEnd card) {
|
private InevitableEnd(final InevitableEnd card) { super(card); }
|
||||||
super(card);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public InevitableEnd copy() {
|
public InevitableEnd copy() {
|
||||||
|
|
Loading…
Reference in a new issue