mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Implemented Goblin War Party
This commit is contained in:
parent
6a4b600225
commit
46f884b840
2 changed files with 51 additions and 0 deletions
50
Mage.Sets/src/mage/cards/g/GoblinWarParty.java
Normal file
50
Mage.Sets/src/mage/cards/g/GoblinWarParty.java
Normal file
|
@ -0,0 +1,50 @@
|
|||
package mage.cards.g;
|
||||
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostControlledEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||
import mage.abilities.keyword.EntwineAbility;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.game.permanent.token.GoblinToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class GoblinWarParty extends CardImpl {
|
||||
|
||||
public GoblinWarParty(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{R}");
|
||||
|
||||
// Choose one —
|
||||
// • Create three 1/1 red Goblin creature tokens.
|
||||
this.getSpellAbility().addEffect(new CreateTokenEffect(new GoblinToken(), 3));
|
||||
|
||||
// • Creatures you control get +1/+1 and gain haste until end of turn.
|
||||
Mode mode = new Mode(new BoostControlledEffect(
|
||||
1, 1, Duration.EndOfTurn
|
||||
).setText("creatures you control get +1/+1"));
|
||||
mode.addEffect(new GainAbilityControlledEffect(
|
||||
HasteAbility.getInstance(), Duration.EndOfTurn
|
||||
).setText("and gain haste until end of turn"));
|
||||
this.getSpellAbility().addMode(mode);
|
||||
|
||||
// Entwine {2}{R}
|
||||
this.addAbility(new EntwineAbility("{2}{R}"));
|
||||
}
|
||||
|
||||
private GoblinWarParty(final GoblinWarParty card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GoblinWarParty copy() {
|
||||
return new GoblinWarParty(this);
|
||||
}
|
||||
}
|
|
@ -33,6 +33,7 @@ public final class ModernHorizons extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Elvish Fury", 162, Rarity.COMMON, mage.cards.e.ElvishFury.class));
|
||||
cards.add(new SetCardInfo("Firebolt", 122, Rarity.UNCOMMON, mage.cards.f.Firebolt.class));
|
||||
cards.add(new SetCardInfo("Goblin Matron", 129, Rarity.UNCOMMON, mage.cards.g.GoblinMatron.class));
|
||||
cards.add(new SetCardInfo("Goblin War Party", 131, Rarity.COMMON, mage.cards.g.GoblinWarParty.class));
|
||||
cards.add(new SetCardInfo("Impostor of the Sixth Pride", 14, Rarity.COMMON, mage.cards.i.ImpostorOfTheSixthPride.class));
|
||||
cards.add(new SetCardInfo("Lava Dart", 134, Rarity.COMMON, mage.cards.l.LavaDart.class));
|
||||
cards.add(new SetCardInfo("Prohibit", 64, Rarity.COMMON, mage.cards.p.Prohibit.class));
|
||||
|
|
Loading…
Reference in a new issue