mirror of
https://github.com/correl/mage.git
synced 2025-01-13 11:01:58 +00:00
[MH2] Implemented Feast of Sanity
This commit is contained in:
parent
55d4c40407
commit
5814325e13
2 changed files with 38 additions and 0 deletions
37
Mage.Sets/src/mage/cards/f/FeastOfSanity.java
Normal file
37
Mage.Sets/src/mage/cards/f/FeastOfSanity.java
Normal file
|
@ -0,0 +1,37 @@
|
|||
package mage.cards.f;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.effects.common.DiscardCardControllerTriggeredAbility;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.common.TargetAnyTarget;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class FeastOfSanity extends CardImpl {
|
||||
|
||||
public FeastOfSanity(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{B}");
|
||||
|
||||
// Whenever you discard a card, Feast of Sanity deals 1 damage to any target and you gain 1 life.
|
||||
Ability ability = new DiscardCardControllerTriggeredAbility(new DamageTargetEffect(1), false);
|
||||
ability.addEffect(new GainLifeEffect(1).concatBy("and"));
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private FeastOfSanity(final FeastOfSanity card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FeastOfSanity copy() {
|
||||
return new FeastOfSanity(this);
|
||||
}
|
||||
}
|
|
@ -63,6 +63,7 @@ public final class ModernHorizons2 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Enchantress's Presence", 283, Rarity.RARE, mage.cards.e.EnchantresssPresence.class));
|
||||
cards.add(new SetCardInfo("Endurance", 157, Rarity.MYTHIC, mage.cards.e.Endurance.class));
|
||||
cards.add(new SetCardInfo("Extruder", 296, Rarity.UNCOMMON, mage.cards.e.Extruder.class));
|
||||
cards.add(new SetCardInfo("Feast of Sanity", 84, Rarity.UNCOMMON, mage.cards.f.FeastOfSanity.class));
|
||||
cards.add(new SetCardInfo("Fire // Ice", 290, Rarity.RARE, mage.cards.f.FireIce.class));
|
||||
cards.add(new SetCardInfo("Flame Rift", 278, Rarity.UNCOMMON, mage.cards.f.FlameRift.class));
|
||||
cards.add(new SetCardInfo("Flametongue Yearling", 125, Rarity.UNCOMMON, mage.cards.f.FlametongueYearling.class));
|
||||
|
|
Loading…
Reference in a new issue