mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[MH2] Implemented Bottle Golems
This commit is contained in:
parent
77ec3e729b
commit
184d6e22d7
2 changed files with 46 additions and 0 deletions
45
Mage.Sets/src/mage/cards/b/BottleGolems.java
Normal file
45
Mage.Sets/src/mage/cards/b/BottleGolems.java
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
package mage.cards.b;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.SourcePermanentPowerCount;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class BottleGolems extends CardImpl {
|
||||
|
||||
private static final DynamicValue xValue = new SourcePermanentPowerCount(false);
|
||||
|
||||
public BottleGolems(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{4}");
|
||||
|
||||
this.subtype.add(SubType.GOLEM);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Trample
|
||||
this.addAbility(TrampleAbility.getInstance());
|
||||
|
||||
// When Bottle Golems dies, you gain life equal to its power.
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new GainLifeEffect(xValue, "you gain life equal to its power")));
|
||||
}
|
||||
|
||||
private BottleGolems(final BottleGolems card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BottleGolems copy() {
|
||||
return new BottleGolems(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -28,6 +28,7 @@ public final class ModernHorizons2 extends ExpansionSet {
|
|||
this.maxCardNumberInBooster = 303;
|
||||
|
||||
cards.add(new SetCardInfo("Arid Mesa", 244, Rarity.RARE, mage.cards.a.AridMesa.class));
|
||||
cards.add(new SetCardInfo("Bottle Golems", 222, Rarity.COMMON, mage.cards.b.BottleGolems.class));
|
||||
cards.add(new SetCardInfo("Brainstone", 223, Rarity.UNCOMMON, mage.cards.b.Brainstone.class));
|
||||
cards.add(new SetCardInfo("Break Ties", 8, Rarity.COMMON, mage.cards.b.BreakTies.class));
|
||||
cards.add(new SetCardInfo("Cabal Coffers", 301, Rarity.MYTHIC, mage.cards.c.CabalCoffers.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue