mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Implemented Thwart the Enemy
This commit is contained in:
parent
78b95320aa
commit
1a657c1c9a
2 changed files with 39 additions and 0 deletions
38
Mage.Sets/src/mage/cards/t/ThwartTheEnemy.java
Normal file
38
Mage.Sets/src/mage/cards/t/ThwartTheEnemy.java
Normal file
|
@ -0,0 +1,38 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.abilities.effects.common.PreventAllDamageByAllObjectsEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.filter.FilterObject;
|
||||
import mage.filter.common.FilterOpponentsCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ThwartTheEnemy extends CardImpl {
|
||||
|
||||
private static final FilterObject filter
|
||||
= new FilterOpponentsCreaturePermanent("creatures your opponents control");
|
||||
|
||||
public ThwartTheEnemy(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{G}");
|
||||
|
||||
// Prevent all damage that would be dealt this turn by creatures your opponents control.
|
||||
this.getSpellAbility().addEffect(new PreventAllDamageByAllObjectsEffect(
|
||||
filter, Duration.EndOfTurn, false
|
||||
));
|
||||
}
|
||||
|
||||
private ThwartTheEnemy(final ThwartTheEnemy card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ThwartTheEnemy copy() {
|
||||
return new ThwartTheEnemy(this);
|
||||
}
|
||||
}
|
|
@ -120,6 +120,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Snapdax, Apex of the Hunt", 209, Rarity.MYTHIC, mage.cards.s.SnapdaxApexOfTheHunt.class));
|
||||
cards.add(new SetCardInfo("Sprite Dragon", 211, Rarity.UNCOMMON, mage.cards.s.SpriteDragon.class));
|
||||
cards.add(new SetCardInfo("Thieving Otter", 69, Rarity.COMMON, mage.cards.t.ThievingOtter.class));
|
||||
cards.add(new SetCardInfo("Thwart the Enemy", 173, Rarity.COMMON, mage.cards.t.ThwartTheEnemy.class));
|
||||
cards.add(new SetCardInfo("Titanoth Rex", 174, Rarity.UNCOMMON, mage.cards.t.TitanothRex.class));
|
||||
cards.add(new SetCardInfo("Trumpeting Gnarr", 213, Rarity.UNCOMMON, mage.cards.t.TrumpetingGnarr.class));
|
||||
cards.add(new SetCardInfo("Vadrok, Apex of Thunder", 214, Rarity.MYTHIC, mage.cards.v.VadrokApexOfThunder.class));
|
||||
|
|
Loading…
Reference in a new issue