mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
[KHM] Implemented Colossal Plow
This commit is contained in:
parent
65aa3e95ec
commit
ed8425000c
2 changed files with 76 additions and 0 deletions
75
Mage.Sets/src/mage/cards/c/ColossalPlow.java
Normal file
75
Mage.Sets/src/mage/cards/c/ColossalPlow.java
Normal file
|
@ -0,0 +1,75 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.Mana;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.AttacksTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.keyword.CrewAbility;
|
||||
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.players.Player;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ColossalPlow extends CardImpl {
|
||||
|
||||
public ColossalPlow(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
|
||||
|
||||
this.subtype.add(SubType.VEHICLE);
|
||||
this.power = new MageInt(6);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Whenever Colossal Plow attacks, add {W}{W}{W} and you gain 3 life. Until end of turn, you don't lose this mana as steps and phases end.
|
||||
this.addAbility(new AttacksTriggeredAbility(new ColossalPlowEffect(), false));
|
||||
|
||||
// Crew 6
|
||||
this.addAbility(new CrewAbility(6));
|
||||
}
|
||||
|
||||
private ColossalPlow(final ColossalPlow card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ColossalPlow copy() {
|
||||
return new ColossalPlow(this);
|
||||
}
|
||||
}
|
||||
|
||||
class ColossalPlowEffect extends OneShotEffect {
|
||||
|
||||
ColossalPlowEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "add {W}{W}{W} and you gain 3 life. Until end of turn, " +
|
||||
"you don't lose this mana as steps and phases end";
|
||||
}
|
||||
|
||||
private ColossalPlowEffect(final ColossalPlowEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ColossalPlowEffect copy() {
|
||||
return new ColossalPlowEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
if (player == null) {
|
||||
return false;
|
||||
}
|
||||
player.getManaPool().addMana(Mana.WhiteMana(3), game, source, true);
|
||||
player.gainLife(3, game, source);
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -100,6 +100,7 @@ public final class Kaldheim extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Cinderheart Giant", 126, Rarity.COMMON, mage.cards.c.CinderheartGiant.class));
|
||||
cards.add(new SetCardInfo("Clarion Spirit", 6, Rarity.UNCOMMON, mage.cards.c.ClarionSpirit.class));
|
||||
cards.add(new SetCardInfo("Cleaving Reaper", 376, Rarity.RARE, mage.cards.c.CleavingReaper.class));
|
||||
cards.add(new SetCardInfo("Colossal Plow", 236, Rarity.UNCOMMON, mage.cards.c.ColossalPlow.class));
|
||||
cards.add(new SetCardInfo("Crush the Weak", 128, Rarity.UNCOMMON, mage.cards.c.CrushTheWeak.class));
|
||||
cards.add(new SetCardInfo("Cyclone Summoner", 52, Rarity.RARE, mage.cards.c.CycloneSummoner.class));
|
||||
cards.add(new SetCardInfo("Darkbore Pathway", 254, Rarity.RARE, mage.cards.d.DarkborePathway.class));
|
||||
|
|
Loading…
Reference in a new issue