forked from External/mage
[BLB] Implement Sazacap's Brew
This commit is contained in:
parent
12aa81cbf4
commit
e970a62278
2 changed files with 56 additions and 0 deletions
55
Mage.Sets/src/mage/cards/s/SazacapsBrew.java
Normal file
55
Mage.Sets/src/mage/cards/s/SazacapsBrew.java
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.abilities.condition.common.GiftWasPromisedCondition;
|
||||
import mage.abilities.costs.common.DiscardCardCost;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.AddContinuousEffectToGame;
|
||||
import mage.abilities.effects.common.DrawCardTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.abilities.keyword.GiftAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.GiftType;
|
||||
import mage.target.TargetPlayer;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
import mage.target.targetadjustment.ConditionalTargetAdjuster;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SazacapsBrew extends CardImpl {
|
||||
|
||||
public SazacapsBrew(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{R}");
|
||||
|
||||
// Gift a tapped Fish
|
||||
this.addAbility(new GiftAbility(this, GiftType.TAPPED_FISH));
|
||||
|
||||
// As an additional cost to cast this spell, discard a card.
|
||||
this.getSpellAbility().addCost(new DiscardCardCost());
|
||||
|
||||
// Target player draws two cards. If the gift was promised, target creature you control gets +2/+0 until end of turn.
|
||||
this.getSpellAbility().addEffect(new DrawCardTargetEffect(2));
|
||||
this.getSpellAbility().addTarget(new TargetPlayer());
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new AddContinuousEffectToGame(new BoostTargetEffect(2, 0)),
|
||||
GiftWasPromisedCondition.TRUE, "if the gift was promised, " +
|
||||
"target creature you control gets +2/+0 until end of turn"
|
||||
));
|
||||
this.getSpellAbility().setTargetAdjuster(new ConditionalTargetAdjuster(
|
||||
GiftWasPromisedCondition.TRUE, true, new TargetControlledCreaturePermanent()
|
||||
));
|
||||
}
|
||||
|
||||
private SazacapsBrew(final SazacapsBrew card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SazacapsBrew copy() {
|
||||
return new SazacapsBrew(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -176,6 +176,7 @@ public final class Bloomburrow extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Ruthless Negotiation", 108, Rarity.UNCOMMON, mage.cards.r.RuthlessNegotiation.class));
|
||||
cards.add(new SetCardInfo("Salvation Swan", 28, Rarity.RARE, mage.cards.s.SalvationSwan.class));
|
||||
cards.add(new SetCardInfo("Savor", 109, Rarity.COMMON, mage.cards.s.Savor.class));
|
||||
cards.add(new SetCardInfo("Sazacap's Brew", 151, Rarity.COMMON, mage.cards.s.SazacapsBrew.class));
|
||||
cards.add(new SetCardInfo("Scales of Shale", 110, Rarity.COMMON, mage.cards.s.ScalesOfShale.class));
|
||||
cards.add(new SetCardInfo("Scavenger's Talent", 111, Rarity.RARE, mage.cards.s.ScavengersTalent.class));
|
||||
cards.add(new SetCardInfo("Scrapshooter", 191, Rarity.RARE, mage.cards.s.Scrapshooter.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue