mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08:00
[LCI] Implement Join the Dead
This commit is contained in:
parent
57c81255c5
commit
56c52af4fe
2 changed files with 45 additions and 0 deletions
44
Mage.Sets/src/mage/cards/j/JoinTheDead.java
Normal file
44
Mage.Sets/src/mage/cards/j/JoinTheDead.java
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
package mage.cards.j;
|
||||
|
||||
import mage.abilities.condition.common.DescendCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.AddContinuousEffectToGame;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class JoinTheDead extends CardImpl {
|
||||
|
||||
public JoinTheDead(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{B}{B}");
|
||||
|
||||
// Target creature gets -5/-5 until end of turn.
|
||||
// Descend 4 -- That creature gets -10/-10 until end of turn instead if there are four or more permanent cards in your graveyard.
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new AddContinuousEffectToGame(new BoostTargetEffect(-10, -10)),
|
||||
new AddContinuousEffectToGame(new BoostTargetEffect(-5, -5)),
|
||||
DescendCondition.FOUR,
|
||||
"Target creature gets -5/-5 until end of turn."
|
||||
+ "<br><i>Descend 4</i> — That creature gets -10/-10 until end of turn instead "
|
||||
+ "if there are four or more permanent cards in your graveyard."
|
||||
));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
this.getSpellAbility().addHint(DescendCondition.getHint());
|
||||
}
|
||||
|
||||
private JoinTheDead(final JoinTheDead card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public JoinTheDead copy() {
|
||||
return new JoinTheDead(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -153,6 +153,7 @@ public final class TheLostCavernsOfIxalan extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Itzquinth, Firstborn of Gishath", 230, Rarity.UNCOMMON, mage.cards.i.ItzquinthFirstbornOfGishath.class));
|
||||
cards.add(new SetCardInfo("Ixalli's Lorekeeper", 194, Rarity.UNCOMMON, mage.cards.i.IxallisLorekeeper.class));
|
||||
cards.add(new SetCardInfo("Jadelight Spelunker", 196, Rarity.RARE, mage.cards.j.JadelightSpelunker.class));
|
||||
cards.add(new SetCardInfo("Join the Dead", 110, Rarity.COMMON, mage.cards.j.JoinTheDead.class));
|
||||
cards.add(new SetCardInfo("Kaslem's Stonetree", 197, Rarity.COMMON, mage.cards.k.KaslemsStonetree.class));
|
||||
cards.add(new SetCardInfo("Kaslem's Strider", 197, Rarity.COMMON, mage.cards.k.KaslemsStrider.class));
|
||||
cards.add(new SetCardInfo("Kellan, Daring Traveler", 231, Rarity.RARE, mage.cards.k.KellanDaringTraveler.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue