forked from External/mage
Implemented Treacherous Blessing
This commit is contained in:
parent
da4e376551
commit
a89619373d
2 changed files with 44 additions and 0 deletions
43
Mage.Sets/src/mage/cards/t/TreacherousBlessing.java
Normal file
43
Mage.Sets/src/mage/cards/t/TreacherousBlessing.java
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.abilities.common.BecomesTargetTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.LoseLifeSourceControllerEffect;
|
||||
import mage.abilities.effects.common.SacrificeSourceEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class TreacherousBlessing extends CardImpl {
|
||||
|
||||
public TreacherousBlessing(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{B}");
|
||||
|
||||
// When Treacherous Blessing enters the battlefield, draw three cards.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(3)));
|
||||
|
||||
// Whenever you cast a spell, you lose 1 life.
|
||||
this.addAbility(new SpellCastControllerTriggeredAbility(
|
||||
new LoseLifeSourceControllerEffect(1), false
|
||||
));
|
||||
|
||||
// When Treacherous Blessing becomes the target of a spell or ability, sacrifice it.
|
||||
this.addAbility(new BecomesTargetTriggeredAbility(new SacrificeSourceEffect()));
|
||||
}
|
||||
|
||||
private TreacherousBlessing(final TreacherousBlessing card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TreacherousBlessing copy() {
|
||||
return new TreacherousBlessing(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -88,6 +88,7 @@ public final class TherosBeyondDeath extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("The Binding of the Titans", 166, Rarity.UNCOMMON, mage.cards.t.TheBindingOfTheTitans.class));
|
||||
cards.add(new SetCardInfo("Thirst for Meaning", 74, Rarity.COMMON, mage.cards.t.ThirstForMeaning.class));
|
||||
cards.add(new SetCardInfo("Towering-Wave Mystic", 77, Rarity.COMMON, mage.cards.t.ToweringWaveMystic.class));
|
||||
cards.add(new SetCardInfo("Treacherous Blessing", 316, Rarity.RARE, mage.cards.t.TreacherousBlessing.class));
|
||||
cards.add(new SetCardInfo("Treeshaker Chimera", 297, Rarity.RARE, mage.cards.t.TreeshakerChimera.class));
|
||||
cards.add(new SetCardInfo("Tymaret Calls the Dead", 118, Rarity.RARE, mage.cards.t.TymaretCallsTheDead.class));
|
||||
cards.add(new SetCardInfo("Underworld Breach", 161, Rarity.RARE, mage.cards.u.UnderworldBreach.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue