mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
[SNC] Implemented Courier's Briefcase
This commit is contained in:
parent
71cf4a69cc
commit
5ba97c089d
2 changed files with 56 additions and 0 deletions
55
Mage.Sets/src/mage/cards/c/CouriersBriefcase.java
Normal file
55
Mage.Sets/src/mage/cards/c/CouriersBriefcase.java
Normal file
|
@ -0,0 +1,55 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.SacrificeSourceCost;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.mana.AnyColorManaAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.game.permanent.token.CitizenGreenWhiteToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class CouriersBriefcase extends CardImpl {
|
||||
|
||||
public CouriersBriefcase(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}{G}");
|
||||
|
||||
this.subtype.add(SubType.TREASURE);
|
||||
|
||||
// When Courier's Briefcase enters the battlefield, create a 1/1 green and white Citizen creature token.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new CitizenGreenWhiteToken())));
|
||||
|
||||
// {T}, Sacrifice Courier's Briefcase: Add one mana of any color.
|
||||
Ability ability = new AnyColorManaAbility();
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
// {W}{U}{B}{R}{G}, {T}, Sacrifice Courier's Briefcase: Draw three cards.
|
||||
ability = new SimpleActivatedAbility(
|
||||
new DrawCardSourceControllerEffect(3), new ManaCostsImpl<>("{W}{U}{B}{R}{G}")
|
||||
);
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private CouriersBriefcase(final CouriersBriefcase card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CouriersBriefcase copy() {
|
||||
return new CouriersBriefcase(this);
|
||||
}
|
||||
}
|
|
@ -27,6 +27,7 @@ public final class StreetsOfNewCapenna extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Brokers Charm", 171, Rarity.UNCOMMON, mage.cards.b.BrokersCharm.class));
|
||||
cards.add(new SetCardInfo("Cabaretti Charm", 173, Rarity.UNCOMMON, mage.cards.c.CabarettiCharm.class));
|
||||
cards.add(new SetCardInfo("Chrome Cat", 236, Rarity.COMMON, mage.cards.c.ChromeCat.class));
|
||||
cards.add(new SetCardInfo("Courier's Briefcase", 142, Rarity.UNCOMMON, mage.cards.c.CouriersBriefcase.class));
|
||||
cards.add(new SetCardInfo("Cut of the Profits", 72, Rarity.RARE, mage.cards.c.CutOfTheProfits.class));
|
||||
cards.add(new SetCardInfo("Devilish Valet", 105, Rarity.RARE, mage.cards.d.DevilishValet.class));
|
||||
cards.add(new SetCardInfo("Forest", 270, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS));
|
||||
|
|
Loading…
Reference in a new issue