mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
Implemented Hard Cover
This commit is contained in:
parent
0e8d86ccb0
commit
8c4dc55a8f
2 changed files with 57 additions and 0 deletions
56
Mage.Sets/src/mage/cards/h/HardCover.java
Normal file
56
Mage.Sets/src/mage/cards/h/HardCover.java
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
package mage.cards.h;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.effects.common.AttachEffect;
|
||||
import mage.abilities.effects.common.DrawDiscardControllerEffect;
|
||||
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.AttachmentType;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.SubType;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class HardCover extends CardImpl {
|
||||
|
||||
public HardCover(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{U}");
|
||||
|
||||
this.subtype.add(SubType.AURA);
|
||||
|
||||
// Enchant creature
|
||||
TargetPermanent auraTarget = new TargetCreaturePermanent();
|
||||
this.getSpellAbility().addTarget(auraTarget);
|
||||
this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
|
||||
Ability ability = new EnchantAbility(auraTarget.getTargetName());
|
||||
this.addAbility(ability);
|
||||
|
||||
// Enchanted creature gets +0/+2 and has "{T}: Draw a card, then discard a card."
|
||||
ability = new SimpleStaticAbility(new BoostEnchantedEffect(0, 2));
|
||||
ability.addEffect(new GainAbilityAttachedEffect(new SimpleActivatedAbility(
|
||||
new DrawDiscardControllerEffect(1, 1), new TapSourceCost()
|
||||
), AttachmentType.AURA).setText("and has \"{T}: Draw a card, then discard a card.\""));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private HardCover(final HardCover card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HardCover copy() {
|
||||
return new HardCover(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -77,6 +77,7 @@ public final class CoreSet2020 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Goblin Smuggler", 144, Rarity.COMMON, mage.cards.g.GoblinSmuggler.class));
|
||||
cards.add(new SetCardInfo("Growth Cycle", 175, Rarity.COMMON, mage.cards.g.GrowthCycle.class));
|
||||
cards.add(new SetCardInfo("Hanged Executioner", 22, Rarity.RARE, mage.cards.h.HangedExecutioner.class));
|
||||
cards.add(new SetCardInfo("Hard Cover", 63, Rarity.UNCOMMON, mage.cards.h.HardCover.class));
|
||||
cards.add(new SetCardInfo("Heart-Piercer Bow", 228, Rarity.COMMON, mage.cards.h.HeartPiercerBow.class));
|
||||
cards.add(new SetCardInfo("Herald of the Sun", 23, Rarity.UNCOMMON, mage.cards.h.HeraldOfTheSun.class));
|
||||
cards.add(new SetCardInfo("Infuriate", 145, Rarity.COMMON, mage.cards.i.Infuriate.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue