mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
ammit eternal impl + tested (#3595)
* ammit eternal impl + tested * fixed combat damage to player
This commit is contained in:
parent
b0d3d15c80
commit
ec9564984d
2 changed files with 43 additions and 0 deletions
42
Mage.Sets/src/mage/cards/a/AmmitEternal.java
Normal file
42
Mage.Sets/src/mage/cards/a/AmmitEternal.java
Normal file
|
@ -0,0 +1,42 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
|
||||
import mage.abilities.common.SpellCastOpponentTriggeredAbility;
|
||||
import mage.abilities.effects.common.RemoveAllCountersSourceEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
import mage.abilities.keyword.AfflictAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.counters.CounterType;
|
||||
|
||||
public class AmmitEternal extends CardImpl {
|
||||
|
||||
public AmmitEternal(UUID ownerId, CardSetInfo cardSetInfo) {
|
||||
super(ownerId, cardSetInfo, new CardType[]{CardType.CREATURE}, "{2}{B}");
|
||||
subtype.add("Zombie");
|
||||
subtype.add("Crocodile");
|
||||
subtype.add("Demon");
|
||||
power = new MageInt(5);
|
||||
toughness = new MageInt(5);
|
||||
|
||||
// Afflict 3 (Whenever this creature becomes blocked, defending player loses 3 life.)
|
||||
this.addAbility(new AfflictAbility(3));
|
||||
|
||||
// Whenever an opponent casts a spell, put a -1/-1 counter on Ammit Eternal.
|
||||
this.addAbility(new SpellCastOpponentTriggeredAbility(new AddCountersSourceEffect(CounterType.M1M1.createInstance()), false));
|
||||
|
||||
// Whenever Ammit Eternal deals combat damage to a player, remove all -1/-1 counters from it.
|
||||
this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new RemoveAllCountersSourceEffect(CounterType.M1M1), false));
|
||||
}
|
||||
|
||||
public AmmitEternal(final AmmitEternal ammitEternal) {
|
||||
super(ammitEternal);
|
||||
}
|
||||
|
||||
public AmmitEternal copy() {
|
||||
return new AmmitEternal(this);
|
||||
}
|
||||
}
|
|
@ -71,6 +71,7 @@ public class HourOfDevastation extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Adorned Pouncer", 2, Rarity.RARE, mage.cards.a.AdornedPouncer.class));
|
||||
cards.add(new SetCardInfo("Aerial Guide", 29, Rarity.COMMON, mage.cards.a.AerialGuide.class));
|
||||
cards.add(new SetCardInfo("Ambuscade", 110, Rarity.COMMON, mage.cards.a.Ambuscade.class));
|
||||
cards.add(new SetCardInfo("Ammit Eternal", 57, Rarity.RARE, mage.cards.a.AmmitEternal.class));
|
||||
cards.add(new SetCardInfo("Angel of Condemnation", 3, Rarity.RARE, mage.cards.a.AngelOfCondemnation.class));
|
||||
cards.add(new SetCardInfo("Angel of the God-Pharaoh", 4, Rarity.UNCOMMON, mage.cards.a.AngelOfTheGodPharaoh.class));
|
||||
cards.add(new SetCardInfo("Aven Reedstalker", 30, Rarity.COMMON, mage.cards.a.AvenReedstalker.class));
|
||||
|
|
Loading…
Reference in a new issue