mirror of
https://github.com/correl/mage.git
synced 2024-12-28 11:14:13 +00:00
[NEO] Implemented Clawing Torment
This commit is contained in:
parent
02a560d637
commit
22e9f47b7e
2 changed files with 69 additions and 0 deletions
68
Mage.Sets/src/mage/cards/c/ClawingTorment.java
Normal file
68
Mage.Sets/src/mage/cards/c/ClawingTorment.java
Normal file
|
@ -0,0 +1,68 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.condition.common.AttachedToMatchesFilterCondition;
|
||||
import mage.abilities.decorator.ConditionalContinuousEffect;
|
||||
import mage.abilities.effects.common.AttachEffect;
|
||||
import mage.abilities.effects.common.LoseLifeSourceControllerEffect;
|
||||
import mage.abilities.effects.common.combat.CantBlockAttachedEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostEnchantedEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect;
|
||||
import mage.abilities.keyword.EnchantAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ClawingTorment extends CardImpl {
|
||||
|
||||
private static final Condition condition = new AttachedToMatchesFilterCondition(StaticFilters.FILTER_PERMANENT_CREATURE);
|
||||
|
||||
public ClawingTorment(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{B}");
|
||||
|
||||
this.subtype.add(SubType.AURA);
|
||||
|
||||
// Enchant artifact creature
|
||||
TargetPermanent auraTarget = new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_CREATURE);
|
||||
this.getSpellAbility().addTarget(auraTarget);
|
||||
this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
|
||||
this.addAbility(new EnchantAbility(auraTarget.getTargetName()));
|
||||
|
||||
// As long as enchanted permanent is a creature, it gets -1/-1 and can't block.
|
||||
Ability ability = new SimpleStaticAbility(new ConditionalContinuousEffect(
|
||||
new BoostEnchantedEffect(-1, -1), condition,
|
||||
"as long as enchanted permanent is a creature, it gets -1/-1"
|
||||
));
|
||||
ability.addEffect(new ConditionalContinuousEffect(
|
||||
new CantBlockAttachedEffect(AttachmentType.AURA), condition, "and can't block"
|
||||
));
|
||||
this.addAbility(ability);
|
||||
|
||||
// Enchanted permanent has "At the beginning of your upkeep, you lose 1 life."
|
||||
this.addAbility(new SimpleStaticAbility(new GainAbilityAttachedEffect(
|
||||
new BeginningOfUpkeepTriggeredAbility(
|
||||
new LoseLifeSourceControllerEffect(1), TargetController.YOU, false
|
||||
), AttachmentType.AURA, Duration.WhileOnBattlefield,
|
||||
"enchanted permanent has \"At the beginning of your upkeep, you lose 1 life.\""
|
||||
)));
|
||||
}
|
||||
|
||||
private ClawingTorment(final ClawingTorment card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ClawingTorment copy() {
|
||||
return new ClawingTorment(this);
|
||||
}
|
||||
}
|
|
@ -58,6 +58,7 @@ public final class KamigawaNeonDynasty extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Brute Suit", 241, Rarity.COMMON, mage.cards.b.BruteSuit.class));
|
||||
cards.add(new SetCardInfo("Careful Cultivation", 178, Rarity.COMMON, mage.cards.c.CarefulCultivation.class));
|
||||
cards.add(new SetCardInfo("Circuit Mender", 242, Rarity.UNCOMMON, mage.cards.c.CircuitMender.class));
|
||||
cards.add(new SetCardInfo("Clawing Torment", 91, Rarity.COMMON, mage.cards.c.ClawingTorment.class));
|
||||
cards.add(new SetCardInfo("Coiling Stalker", 179, Rarity.COMMON, mage.cards.c.CoilingStalker.class));
|
||||
cards.add(new SetCardInfo("Colossal Skyturtle", 216, Rarity.UNCOMMON, mage.cards.c.ColossalSkyturtle.class));
|
||||
cards.add(new SetCardInfo("Covert Technician", 49, Rarity.UNCOMMON, mage.cards.c.CovertTechnician.class));
|
||||
|
|
Loading…
Reference in a new issue