mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Implemented Bad Deal
This commit is contained in:
parent
b722362378
commit
8f3cde2521
2 changed files with 39 additions and 0 deletions
38
Mage.Sets/src/mage/cards/b/BadDeal.java
Normal file
38
Mage.Sets/src/mage/cards/b/BadDeal.java
Normal file
|
@ -0,0 +1,38 @@
|
|||
package mage.cards.b;
|
||||
|
||||
import mage.abilities.dynamicvalue.common.StaticValue;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.LoseLifeAllPlayersEffect;
|
||||
import mage.abilities.effects.common.discard.DiscardEachPlayerEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.TargetController;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class BadDeal extends CardImpl {
|
||||
|
||||
public BadDeal(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{B}{B}");
|
||||
|
||||
// You draw two cards and each opponent discards two cards. Each player loses 2 life.
|
||||
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(2).setText("You draw two cards"));
|
||||
this.getSpellAbility().addEffect(new DiscardEachPlayerEffect(
|
||||
StaticValue.get(2), false, TargetController.OPPONENT
|
||||
).concatBy("and"));
|
||||
this.getSpellAbility().addEffect(new LoseLifeAllPlayersEffect(2).setText("Each player loses 2 life"));
|
||||
}
|
||||
|
||||
private BadDeal(final BadDeal card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BadDeal copy() {
|
||||
return new BadDeal(this);
|
||||
}
|
||||
}
|
|
@ -34,6 +34,7 @@ public final class CoreSet2021 extends ExpansionSet {
|
|||
this.maxCardNumberInBooster = 274;
|
||||
|
||||
cards.add(new SetCardInfo("Azusa, Lost but Seeking", 173, Rarity.RARE, mage.cards.a.AzusaLostButSeeking.class));
|
||||
cards.add(new SetCardInfo("Bad Deal", 89, Rarity.UNCOMMON, mage.cards.b.BadDeal.class));
|
||||
cards.add(new SetCardInfo("Baneslayer Angel", 4, Rarity.MYTHIC, mage.cards.b.BaneslayerAngel.class));
|
||||
cards.add(new SetCardInfo("Containment Priest", 314, Rarity.RARE, mage.cards.c.ContainmentPriest.class));
|
||||
cards.add(new SetCardInfo("Double Vision", 142, Rarity.RARE, mage.cards.d.DoubleVision.class));
|
||||
|
|
Loading…
Reference in a new issue