mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
[OTJ] Implement Bandit's Haul
This commit is contained in:
parent
8fbc7c9507
commit
98881c4dc7
3 changed files with 54 additions and 0 deletions
52
Mage.Sets/src/mage/cards/b/BanditsHaul.java
Normal file
52
Mage.Sets/src/mage/cards/b/BanditsHaul.java
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
package mage.cards.b;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.CommittedCrimeTriggeredAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.RemoveCountersSourceCost;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
import mage.abilities.mana.AnyColorManaAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.counters.CounterType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class BanditsHaul extends CardImpl {
|
||||
|
||||
public BanditsHaul(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}");
|
||||
|
||||
// Whenever you commit a crime, put a loot counter on Bandit's Haul. This ability triggers only once each turn.
|
||||
this.addAbility(new CommittedCrimeTriggeredAbility(
|
||||
new AddCountersSourceEffect(CounterType.LOOT.createInstance())
|
||||
).setTriggersOnceEachTurn(true));
|
||||
|
||||
// {T}: Add one mana of any color.
|
||||
this.addAbility(new AnyColorManaAbility());
|
||||
|
||||
// {2}, {T}, Remove two loot counters from Bandit's Haul: Draw a card.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new DrawCardSourceControllerEffect(1), new GenericManaCost(2)
|
||||
);
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new RemoveCountersSourceCost(CounterType.LOOT.createInstance(2)));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private BanditsHaul(final BanditsHaul card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BanditsHaul copy() {
|
||||
return new BanditsHaul(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -32,6 +32,7 @@ public final class OutlawsOfThunderJunction extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Armored Armadillo", 3, Rarity.COMMON, mage.cards.a.ArmoredArmadillo.class));
|
||||
cards.add(new SetCardInfo("At Knifepoint", 193, Rarity.UNCOMMON, mage.cards.a.AtKnifepoint.class));
|
||||
cards.add(new SetCardInfo("Badlands Revival", 194, Rarity.UNCOMMON, mage.cards.b.BadlandsRevival.class));
|
||||
cards.add(new SetCardInfo("Bandit's Haul", 240, Rarity.UNCOMMON, mage.cards.b.BanditsHaul.class));
|
||||
cards.add(new SetCardInfo("Beastbond Outcaster", 154, Rarity.UNCOMMON, mage.cards.b.BeastbondOutcaster.class));
|
||||
cards.add(new SetCardInfo("Blacksnag Buzzard", 79, Rarity.COMMON, mage.cards.b.BlacksnagBuzzard.class));
|
||||
cards.add(new SetCardInfo("Blood Hustler", 80, Rarity.UNCOMMON, mage.cards.b.BloodHustler.class));
|
||||
|
|
|
|||
|
|
@ -123,6 +123,7 @@ public enum CounterType {
|
|||
LANDMARK("landmark"),
|
||||
LEVEL("level"),
|
||||
LIFELINK("lifelink"),
|
||||
LOOT("loot"),
|
||||
LORE("lore"),
|
||||
LUCK("luck"),
|
||||
LOYALTY("loyalty"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue