mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
[CLB] Implemented Marching Duodrone
This commit is contained in:
parent
3350c5d8d8
commit
4f9079cd79
2 changed files with 67 additions and 0 deletions
66
Mage.Sets/src/mage/cards/m/MarchingDuodrone.java
Normal file
66
Mage.Sets/src/mage/cards/m/MarchingDuodrone.java
Normal file
|
@ -0,0 +1,66 @@
|
|||
package mage.cards.m;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.AttacksTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.SubType;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.token.TreasureToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class MarchingDuodrone extends CardImpl {
|
||||
|
||||
public MarchingDuodrone(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{2}");
|
||||
|
||||
this.subtype.add(SubType.CONSTRUCT);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Whenever Marching Duodrone attacks, each player creates a Treasure token.
|
||||
this.addAbility(new AttacksTriggeredAbility(new MarchingDuodroneEffect()));
|
||||
}
|
||||
|
||||
private MarchingDuodrone(final MarchingDuodrone card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MarchingDuodrone copy() {
|
||||
return new MarchingDuodrone(this);
|
||||
}
|
||||
}
|
||||
|
||||
class MarchingDuodroneEffect extends OneShotEffect {
|
||||
|
||||
MarchingDuodroneEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "each player creates a Treasure token";
|
||||
}
|
||||
|
||||
private MarchingDuodroneEffect(final MarchingDuodroneEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MarchingDuodroneEffect copy() {
|
||||
return new MarchingDuodroneEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
for (UUID playerId : game.getState().getPlayersInRange(source.getControllerId(), game)) {
|
||||
new TreasureToken().putOntoBattlefield(1, game, source, playerId);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -170,6 +170,7 @@ public final class CommanderLegendsBattleForBaldursGate extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Manifold Key", 319, Rarity.UNCOMMON, mage.cards.m.ManifoldKey.class));
|
||||
cards.add(new SetCardInfo("Manor Gate", 356, Rarity.COMMON, mage.cards.m.ManorGate.class));
|
||||
cards.add(new SetCardInfo("Marble Diamond", 320, Rarity.COMMON, mage.cards.m.MarbleDiamond.class));
|
||||
cards.add(new SetCardInfo("Marching Duodrone", 321, Rarity.COMMON, mage.cards.m.MarchingDuodrone.class));
|
||||
cards.add(new SetCardInfo("Martial Impetus", 33, Rarity.COMMON, mage.cards.m.MartialImpetus.class));
|
||||
cards.add(new SetCardInfo("Meteor Golem", 323, Rarity.UNCOMMON, mage.cards.m.MeteorGolem.class));
|
||||
cards.add(new SetCardInfo("Mind Stone", 325, Rarity.UNCOMMON, mage.cards.m.MindStone.class));
|
||||
|
|
Loading…
Reference in a new issue