[DMU] Implemented Salvaged Manaworker

This commit is contained in:
Daniel Bomar 2022-08-27 14:30:04 -05:00
parent d91ffd95ec
commit 515cfdb7ee
No known key found for this signature in database
GPG key ID: C86C8658F4023918
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,43 @@
package mage.cards.s;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.mana.AddManaOfAnyColorEffect;
import mage.abilities.mana.ActivateOncePerTurnManaAbility;
import mage.constants.SubType;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Zone;
/**
*
* @author weirddan455
*/
public final class SalvagedManaworker extends CardImpl {
public SalvagedManaworker(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{2}");
this.subtype.add(SubType.CONSTRUCT);
this.power = new MageInt(1);
this.toughness = new MageInt(3);
// {1}: Add one mana of any color. Activate only once each turn.
this.addAbility(new ActivateOncePerTurnManaAbility(
Zone.BATTLEFIELD,
new AddManaOfAnyColorEffect(),
new GenericManaCost(1)
));
}
private SalvagedManaworker(final SalvagedManaworker card) {
super(card);
}
@Override
public SalvagedManaworker copy() {
return new SalvagedManaworker(this);
}
}

View file

@ -160,6 +160,7 @@ public final class DominariaUnited extends ExpansionSet {
cards.add(new SetCardInfo("Rulik Mons, Warren Chief", 217, Rarity.UNCOMMON, mage.cards.r.RulikMonsWarrenChief.class));
cards.add(new SetCardInfo("Runic Shot", 30, Rarity.UNCOMMON, mage.cards.r.RunicShot.class));
cards.add(new SetCardInfo("Sacred Peaks", 254, Rarity.COMMON, mage.cards.s.SacredPeaks.class));
cards.add(new SetCardInfo("Salvaged Manaworker", 237, Rarity.COMMON, mage.cards.s.SalvagedManaworker.class));
cards.add(new SetCardInfo("Samite Herbalist", 31, Rarity.COMMON, mage.cards.s.SamiteHerbalist.class));
cards.add(new SetCardInfo("Scout the Wilderness", 176, Rarity.COMMON, mage.cards.s.ScoutTheWilderness.class));
cards.add(new SetCardInfo("Sengir Connoisseur", 104, Rarity.UNCOMMON, mage.cards.s.SengirConnoisseur.class));