mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +00:00
* Hearthcage Giant - Fix that only one Elemental Shaman token is created (fixes #2141).
This commit is contained in:
parent
1c5d4a0f48
commit
9129bda9b7
4 changed files with 4 additions and 4 deletions
|
@ -133,7 +133,7 @@ class HostilityEffect extends PreventionEffectImpl {
|
|||
class HostilityElementalToken extends ElementalShamanToken {
|
||||
|
||||
public HostilityElementalToken() {
|
||||
super("DD2", 1);
|
||||
super("DD2");
|
||||
description = description + " with haste";
|
||||
addAbility(HasteAbility.getInstance());
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ public class HearthcageGiant extends CardImpl {
|
|||
this.toughness = new MageInt(5);
|
||||
|
||||
//When Hearthcage Giant enters the battlefield, put two 3/1 red Elemental Shaman creature tokens onto the battlefield.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new ElementalShamanToken("LRW", 2)), false));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new ElementalShamanToken("LRW"), 2), false));
|
||||
|
||||
//Sacrifice an Elemental: Target Giant creature gets +3/+1 until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(3, 1, Duration.EndOfTurn), new SacrificeTargetCost(new TargetControlledPermanent(filterElemental)));
|
||||
|
|
|
@ -136,7 +136,7 @@ class RebellionOfTheFlamekinEffect extends OneShotEffect {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller != null) {
|
||||
CreateTokenEffect createTokenEffect = new CreateTokenEffect(new ElementalShamanToken("LRW", 1));
|
||||
CreateTokenEffect createTokenEffect = new CreateTokenEffect(new ElementalShamanToken("LRW"));
|
||||
DoIfCostPaid doIfCostPaid = new DoIfCostPaid(createTokenEffect, new ManaCostsImpl("{1}"));
|
||||
doIfCostPaid.apply(game, source);
|
||||
Permanent token = game.getPermanent(createTokenEffect.getLastAddedTokenId());
|
||||
|
|
|
@ -45,7 +45,7 @@ public class ElementalShamanToken extends Token {
|
|||
tokenImageSets.addAll(Arrays.asList("C15", "DD3JVC", "DD2", "LRW"));
|
||||
}
|
||||
|
||||
public ElementalShamanToken(String setCode, int tokenType) {
|
||||
public ElementalShamanToken(String setCode) {
|
||||
super("Elemental Shaman", "3/1 red Elemental Shaman creature token");
|
||||
availableImageSetCodes = tokenImageSets;
|
||||
setOriginalExpansionSetCode(setCode);
|
||||
|
|
Loading…
Reference in a new issue