mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
[MH2] Implemented Cabal Initiate
This commit is contained in:
parent
42c6104748
commit
0191c4a9c1
2 changed files with 54 additions and 0 deletions
53
Mage.Sets/src/mage/cards/c/CabalInitiate.java
Normal file
53
Mage.Sets/src/mage/cards/c/CabalInitiate.java
Normal file
|
@ -0,0 +1,53 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.condition.common.CardsInControllerGraveyardCondition;
|
||||
import mage.abilities.costs.common.DiscardCardCost;
|
||||
import mage.abilities.decorator.ConditionalContinuousEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostSourceEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
|
||||
import mage.abilities.keyword.LifelinkAbility;
|
||||
import mage.constants.AbilityWord;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author weirddan455
|
||||
*/
|
||||
public final class CabalInitiate extends CardImpl {
|
||||
|
||||
public CabalInitiate(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.WARLOCK);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Discard a card: Cabal Initiate gains lifelink until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(new GainAbilitySourceEffect(LifelinkAbility.getInstance(), Duration.EndOfTurn), new DiscardCardCost()));
|
||||
|
||||
// Threshold — Cabal Initiate gets +1/+2 as long as seven or more cards are in your graveyard.
|
||||
this.addAbility(new SimpleStaticAbility(new ConditionalContinuousEffect(
|
||||
new BoostSourceEffect(1, 2, Duration.WhileOnBattlefield),
|
||||
new CardsInControllerGraveyardCondition(7),
|
||||
"{this} gets +1/+2 as long as seven or more cards are in your graveyard"
|
||||
)).setAbilityWord(AbilityWord.THRESHOLD));
|
||||
}
|
||||
|
||||
private CabalInitiate(final CabalInitiate card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CabalInitiate copy() {
|
||||
return new CabalInitiate(this);
|
||||
}
|
||||
}
|
|
@ -63,6 +63,7 @@ public final class ModernHorizons2 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Breya's Apprentice", 117, Rarity.RARE, mage.cards.b.BreyasApprentice.class));
|
||||
cards.add(new SetCardInfo("Burdened Aerialist", 38, Rarity.COMMON, mage.cards.b.BurdenedAerialist.class));
|
||||
cards.add(new SetCardInfo("Cabal Coffers", 301, Rarity.MYTHIC, mage.cards.c.CabalCoffers.class));
|
||||
cards.add(new SetCardInfo("Cabal Initiate", 78, Rarity.COMMON, mage.cards.c.CabalInitiate.class));
|
||||
cards.add(new SetCardInfo("Calibrated Blast", 118, Rarity.RARE, mage.cards.c.CalibratedBlast.class));
|
||||
cards.add(new SetCardInfo("Captain Ripley Vance", 119, Rarity.UNCOMMON, mage.cards.c.CaptainRipleyVance.class));
|
||||
cards.add(new SetCardInfo("Captured by Lagacs", 188, Rarity.COMMON, mage.cards.c.CapturedByLagacs.class));
|
||||
|
|
Loading…
Reference in a new issue