mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Implemented Epicure of Blood
This commit is contained in:
parent
c3080a5ab6
commit
98c343f225
3 changed files with 49 additions and 42 deletions
|
@ -1,9 +1,8 @@
|
||||||
|
|
||||||
package mage.cards.a;
|
package mage.cards.a;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.TriggeredAbilityImpl;
|
import mage.abilities.common.GainLifeControllerTriggeredAbility;
|
||||||
import mage.abilities.effects.common.counter.AddCountersAllEffect;
|
import mage.abilities.effects.common.counter.AddCountersAllEffect;
|
||||||
import mage.abilities.keyword.FlyingAbility;
|
import mage.abilities.keyword.FlyingAbility;
|
||||||
import mage.abilities.keyword.LifelinkAbility;
|
import mage.abilities.keyword.LifelinkAbility;
|
||||||
|
@ -11,12 +10,8 @@ import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.SubType;
|
import mage.constants.SubType;
|
||||||
import mage.constants.Zone;
|
|
||||||
import mage.counters.CounterType;
|
import mage.counters.CounterType;
|
||||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
import mage.filter.StaticFilters;
|
||||||
import mage.game.Game;
|
|
||||||
import mage.game.events.GameEvent;
|
|
||||||
import mage.game.events.GameEvent.EventType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -33,11 +28,17 @@ public final class ArchangelOfThune extends CardImpl {
|
||||||
|
|
||||||
// Flying
|
// Flying
|
||||||
this.addAbility(FlyingAbility.getInstance());
|
this.addAbility(FlyingAbility.getInstance());
|
||||||
|
|
||||||
// Lifelink
|
// Lifelink
|
||||||
this.addAbility(LifelinkAbility.getInstance());
|
this.addAbility(LifelinkAbility.getInstance());
|
||||||
// Whenever you gain life, put a +1/+1 counter on each creature you control.
|
|
||||||
this.addAbility(new ArchangelOfThuneAbility());
|
|
||||||
|
|
||||||
|
// Whenever you gain life, put a +1/+1 counter on each creature you control.
|
||||||
|
this.addAbility(new GainLifeControllerTriggeredAbility(
|
||||||
|
new AddCountersAllEffect(
|
||||||
|
CounterType.P1P1.createInstance(),
|
||||||
|
StaticFilters.FILTER_CONTROLLED_CREATURES
|
||||||
|
), false
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
public ArchangelOfThune(final ArchangelOfThune card) {
|
public ArchangelOfThune(final ArchangelOfThune card) {
|
||||||
|
@ -49,35 +50,3 @@ public final class ArchangelOfThune extends CardImpl {
|
||||||
return new ArchangelOfThune(this);
|
return new ArchangelOfThune(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class ArchangelOfThuneAbility extends TriggeredAbilityImpl {
|
|
||||||
|
|
||||||
public ArchangelOfThuneAbility() {
|
|
||||||
super(Zone.BATTLEFIELD, new AddCountersAllEffect(CounterType.P1P1.createInstance(), new FilterControlledCreaturePermanent()), false);
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArchangelOfThuneAbility(final ArchangelOfThuneAbility ability) {
|
|
||||||
super(ability);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ArchangelOfThuneAbility copy() {
|
|
||||||
return new ArchangelOfThuneAbility(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean checkEventType(GameEvent event, Game game) {
|
|
||||||
return event.getType() == EventType.GAINED_LIFE;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean checkTrigger(GameEvent event, Game game) {
|
|
||||||
return event.getPlayerId().equals(controllerId);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getRule() {
|
|
||||||
return "Whenever you gain life, put a +1/+1 counter on each creature you control.";
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
37
Mage.Sets/src/mage/cards/e/EpicureOfBlood.java
Normal file
37
Mage.Sets/src/mage/cards/e/EpicureOfBlood.java
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
package mage.cards.e;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
import mage.MageInt;
|
||||||
|
import mage.abilities.common.GainLifeControllerTriggeredAbility;
|
||||||
|
import mage.abilities.effects.common.LoseLifeOpponentsEffect;
|
||||||
|
import mage.constants.SubType;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class EpicureOfBlood extends CardImpl {
|
||||||
|
|
||||||
|
public EpicureOfBlood(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{B}");
|
||||||
|
|
||||||
|
this.subtype.add(SubType.VAMPIRE);
|
||||||
|
this.power = new MageInt(4);
|
||||||
|
this.toughness = new MageInt(4);
|
||||||
|
|
||||||
|
// Whenever you gain life, each opponent loses 1 life.
|
||||||
|
this.addAbility(new GainLifeControllerTriggeredAbility(new LoseLifeOpponentsEffect(1), false));
|
||||||
|
}
|
||||||
|
|
||||||
|
public EpicureOfBlood(final EpicureOfBlood card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public EpicureOfBlood copy() {
|
||||||
|
return new EpicureOfBlood(this);
|
||||||
|
}
|
||||||
|
}
|
|
@ -73,6 +73,7 @@ public final class CoreSet2019 extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Electrify", 139, Rarity.COMMON, mage.cards.e.Electrify.class));
|
cards.add(new SetCardInfo("Electrify", 139, Rarity.COMMON, mage.cards.e.Electrify.class));
|
||||||
cards.add(new SetCardInfo("Elvish Clancaller", 179, Rarity.RARE, mage.cards.e.ElvishClancaller.class));
|
cards.add(new SetCardInfo("Elvish Clancaller", 179, Rarity.RARE, mage.cards.e.ElvishClancaller.class));
|
||||||
cards.add(new SetCardInfo("Elvish Rejuvenator", 180, Rarity.COMMON, mage.cards.e.ElvishRejuvenator.class));
|
cards.add(new SetCardInfo("Elvish Rejuvenator", 180, Rarity.COMMON, mage.cards.e.ElvishRejuvenator.class));
|
||||||
|
cards.add(new SetCardInfo("Epicure of Blood", 95, Rarity.COMMON, mage.cards.e.EpicureOfBlood.class));
|
||||||
cards.add(new SetCardInfo("Exclusion Mage", 55, Rarity.UNCOMMON, mage.cards.e.ExclusionMage.class));
|
cards.add(new SetCardInfo("Exclusion Mage", 55, Rarity.UNCOMMON, mage.cards.e.ExclusionMage.class));
|
||||||
cards.add(new SetCardInfo("Field Creeper", 234, Rarity.COMMON, mage.cards.f.FieldCreeper.class));
|
cards.add(new SetCardInfo("Field Creeper", 234, Rarity.COMMON, mage.cards.f.FieldCreeper.class));
|
||||||
cards.add(new SetCardInfo("Fiery Finish", 140, Rarity.UNCOMMON, mage.cards.f.FieryFinish.class));
|
cards.add(new SetCardInfo("Fiery Finish", 140, Rarity.UNCOMMON, mage.cards.f.FieryFinish.class));
|
||||||
|
|
Loading…
Reference in a new issue