mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
Implemented Garruk, Cursed Huntsman
This commit is contained in:
parent
d99e77d944
commit
39ce76f82a
4 changed files with 131 additions and 0 deletions
|
|
@ -0,0 +1,37 @@
|
|||
package mage.game.command.emblems;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.continuous.BoostControlledEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.command.Emblem;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class GarrukCursedHuntsmanEmblem extends Emblem {
|
||||
|
||||
// -6: You get an emblem with "Creatures you control get +3/+3 and have trample."
|
||||
public GarrukCursedHuntsmanEmblem() {
|
||||
this.setName("Emblem Garruk");
|
||||
this.setExpansionSetCodeForImage("ELD");
|
||||
Ability ability = new SimpleStaticAbility(
|
||||
Zone.COMMAND,
|
||||
new BoostControlledEffect(
|
||||
3, 3, Duration.EndOfGame,
|
||||
StaticFilters.FILTER_PERMANENT_CREATURES,
|
||||
false
|
||||
).setText("creatures you control get +3/+3")
|
||||
);
|
||||
ability.addEffect(new GainAbilityControlledEffect(
|
||||
TrampleAbility.getInstance(),
|
||||
Duration.EndOfGame,
|
||||
StaticFilters.FILTER_PERMANENT_CREATURES
|
||||
).setText("and have trample"));
|
||||
this.getAbilities().add(ability);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.effects.common.counter.AddCountersAllEffect;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class GarrukCursedHuntsmanToken extends TokenImpl {
|
||||
|
||||
private static final FilterPermanent filter
|
||||
= new FilterControlledPermanent(SubType.GARRUK, "Garruk you control");
|
||||
|
||||
public GarrukCursedHuntsmanToken() {
|
||||
super("Wolf", "2/2 black and green Wolf creature token with \"When this creature dies, put a loyalty counter on each Garruk you control.\"");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setBlack(true);
|
||||
color.setGreen(true);
|
||||
subtype.add(SubType.WOLF);
|
||||
power = new MageInt(2);
|
||||
toughness = new MageInt(2);
|
||||
|
||||
this.addAbility(new DiesTriggeredAbility(new AddCountersAllEffect(CounterType.LOYALTY.createInstance(), filter)));
|
||||
}
|
||||
|
||||
public GarrukCursedHuntsmanToken(final GarrukCursedHuntsmanToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public GarrukCursedHuntsmanToken copy() {
|
||||
return new GarrukCursedHuntsmanToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue