forked from magefree/mage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package mage.cards.s; | ||
|
||
import mage.abilities.Ability; | ||
import mage.abilities.common.EntersBattlefieldTriggeredAbility; | ||
import mage.abilities.common.SimpleActivatedAbility; | ||
import mage.abilities.costs.common.PayEnergyCost; | ||
import mage.abilities.dynamicvalue.common.CreaturesYouControlCount; | ||
import mage.abilities.effects.common.CreateTokenEffect; | ||
import mage.abilities.effects.common.continuous.BoostControlledEffect; | ||
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; | ||
import mage.abilities.effects.common.counter.GetEnergyCountersControllerEffect; | ||
import mage.abilities.hint.common.CreaturesYouControlHint; | ||
import mage.abilities.keyword.HasteAbility; | ||
import mage.cards.CardImpl; | ||
import mage.cards.CardSetInfo; | ||
import mage.constants.CardType; | ||
import mage.constants.Duration; | ||
import mage.filter.StaticFilters; | ||
import mage.game.permanent.token.GremlinToken; | ||
|
||
import java.util.UUID; | ||
|
||
/** | ||
* @author TheElk801 | ||
*/ | ||
public final class ScurryOfGremlins extends CardImpl { | ||
|
||
public ScurryOfGremlins(UUID ownerId, CardSetInfo setInfo) { | ||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{R}{W}"); | ||
|
||
// When Scurry of Gremlins enters the battlefield, create two 1/1 red Gremlin creature tokens. Then you get an amount of {E} equal to the number of creatures you control. | ||
Ability ability = new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new GremlinToken(), 2)); | ||
ability.addEffect(new GetEnergyCountersControllerEffect(CreaturesYouControlCount.instance) | ||
.setText("then you get an amount of {E} equal to the number of creatures you control")); | ||
this.addAbility(ability.addHint(CreaturesYouControlHint.instance)); | ||
|
||
// Pay {E}{E}{E}{E}: Creatures you control get +1/+0 and gain haste until end of turn. | ||
ability = new SimpleActivatedAbility(new BoostControlledEffect( | ||
1, 0, Duration.EndOfTurn | ||
).setText("creatures you control get +1/+0"), new PayEnergyCost(4)); | ||
ability.addEffect(new GainAbilityControlledEffect( | ||
HasteAbility.getInstance(), Duration.EndOfTurn, | ||
StaticFilters.FILTER_PERMANENT_CREATURE | ||
).setText("and gain haste until end of turn")); | ||
this.addAbility(ability); | ||
} | ||
|
||
private ScurryOfGremlins(final ScurryOfGremlins card) { | ||
super(card); | ||
} | ||
|
||
@Override | ||
public ScurryOfGremlins copy() { | ||
return new ScurryOfGremlins(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
Mage/src/main/java/mage/game/permanent/token/Gremlin11Token.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package mage.game.permanent.token; | ||
|
||
import mage.MageInt; | ||
import mage.constants.CardType; | ||
import mage.constants.SubType; | ||
|
||
/** | ||
* @author TheElk801 | ||
*/ | ||
public final class Gremlin11Token extends TokenImpl { | ||
|
||
public Gremlin11Token() { | ||
super("Gremlin Token", "1/1 red Gremlin creature token"); | ||
cardType.add(CardType.CREATURE); | ||
subtype.add(SubType.GREMLIN); | ||
color.setRed(true); | ||
power = new MageInt(1); | ||
toughness = new MageInt(1); | ||
} | ||
|
||
private Gremlin11Token(final Gremlin11Token token) { | ||
super(token); | ||
} | ||
|
||
public Gremlin11Token copy() { | ||
return new Gremlin11Token(this); | ||
} | ||
} |