mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
[AFR] Implemented Battle Cry Goblin
This commit is contained in:
parent
ffe066a272
commit
2d1e11dfa9
2 changed files with 62 additions and 0 deletions
61
Mage.Sets/src/mage/cards/b/BattleCryGoblin.java
Normal file
61
Mage.Sets/src/mage/cards/b/BattleCryGoblin.java
Normal file
|
@ -0,0 +1,61 @@
|
|||
package mage.cards.b;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostControlledEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.abilities.keyword.PackTacticsAbility;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.permanent.token.GoblinToken;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author weirddan455
|
||||
*/
|
||||
public final class BattleCryGoblin extends CardImpl {
|
||||
|
||||
public BattleCryGoblin(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}");
|
||||
|
||||
this.subtype.add(SubType.GOBLIN);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// {1}{R}: Goblins you control get +1/+0 and gain haste until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new BoostControlledEffect(1, 0, Duration.EndOfTurn, StaticFilters.FILTER_PERMANENT_CREATURE_GOBLINS)
|
||||
.setText("Goblins you control get +1/+0"),
|
||||
new ManaCostsImpl("{1}{R}")
|
||||
);
|
||||
ability.addEffect(new GainAbilityControlledEffect(
|
||||
HasteAbility.getInstance(), Duration.EndOfTurn, StaticFilters.FILTER_PERMANENT_CREATURE_GOBLINS)
|
||||
.setText("and gain haste until end of turn")
|
||||
);
|
||||
this.addAbility(ability);
|
||||
|
||||
// Pack tactics — Whenever Battle Cry Goblin attacks, if you attacked with creatures with total power 6 or greater this combat,
|
||||
// create a 1/1 red Goblin creature token that's tapped and attacking.
|
||||
this.addAbility(new PackTacticsAbility(new CreateTokenEffect(
|
||||
new GoblinToken(), 1, true, true
|
||||
)));
|
||||
}
|
||||
|
||||
private BattleCryGoblin(final BattleCryGoblin card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BattleCryGoblin copy() {
|
||||
return new BattleCryGoblin(this);
|
||||
}
|
||||
}
|
|
@ -27,6 +27,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet {
|
|||
|
||||
cards.add(new SetCardInfo("Adult Gold Dragon", 216, Rarity.RARE, mage.cards.a.AdultGoldDragon.class));
|
||||
cards.add(new SetCardInfo("Baleful Beholder", 89, Rarity.COMMON, mage.cards.b.BalefulBeholder.class));
|
||||
cards.add(new SetCardInfo("Battle Cry Goblin", 132, Rarity.UNCOMMON, mage.cards.b.BattleCryGoblin.class));
|
||||
cards.add(new SetCardInfo("Bruenor Battlehammer", 219, Rarity.UNCOMMON, mage.cards.b.BruenorBattlehammer.class));
|
||||
cards.add(new SetCardInfo("Bull's Strength", 174, Rarity.COMMON, mage.cards.b.BullsStrength.class));
|
||||
cards.add(new SetCardInfo("Cave of the Frost Dragon", 253, Rarity.RARE, mage.cards.c.CaveOfTheFrostDragon.class));
|
||||
|
|
Loading…
Reference in a new issue