[CLB] Implemented Zhentarim Bandit

This commit is contained in:
Evan Kranzler 2022-05-30 10:08:26 -04:00
parent 8f4ee6947a
commit 6eb5aea50e
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,43 @@
package mage.cards.z;
import mage.MageInt;
import mage.abilities.common.AttacksTriggeredAbility;
import mage.abilities.costs.common.PayLifeCost;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.DoIfCostPaid;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.game.permanent.token.TreasureToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ZhentarimBandit extends CardImpl {
public ZhentarimBandit(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}");
this.subtype.add(SubType.HALFLING);
this.subtype.add(SubType.ROGUE);
this.power = new MageInt(2);
this.toughness = new MageInt(1);
// Whenever Zhentarim Bandit attacks, you may pay 1 life. If you do, create a Treasure token.
this.addAbility(new AttacksTriggeredAbility(new DoIfCostPaid(
new CreateTokenEffect(new TreasureToken()), new PayLifeCost(1)
)));
}
private ZhentarimBandit(final ZhentarimBandit card) {
super(card);
}
@Override
public ZhentarimBandit copy() {
return new ZhentarimBandit(this);
}
}

View file

@ -279,5 +279,6 @@ public final class CommanderLegendsBattleForBaldursGate extends ExpansionSet {
cards.add(new SetCardInfo("Young Red Dragon", 210, Rarity.COMMON, mage.cards.y.YoungRedDragon.class));
cards.add(new SetCardInfo("Your Temple Is Under Attack", 52, Rarity.COMMON, mage.cards.y.YourTempleIsUnderAttack.class));
cards.add(new SetCardInfo("Zevlor, Elturel Exile", 296, Rarity.RARE, mage.cards.z.ZevlorElturelExile.class));
cards.add(new SetCardInfo("Zhentarim Bandit", 158, Rarity.COMMON, mage.cards.z.ZhentarimBandit.class));
}
}