From d6037c6f6ccef14009fc5250f76cc040fa77866d Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 21 Jun 2015 23:56:42 +0200 Subject: [PATCH] * Carrion Call - Fixed that the created tokens had no infect. --- .../sets/scarsofmirrodin/CarrionCall.java | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/sets/scarsofmirrodin/CarrionCall.java b/Mage.Sets/src/mage/sets/scarsofmirrodin/CarrionCall.java index b5df5712a3a..6e230d5b0a5 100644 --- a/Mage.Sets/src/mage/sets/scarsofmirrodin/CarrionCall.java +++ b/Mage.Sets/src/mage/sets/scarsofmirrodin/CarrionCall.java @@ -29,11 +29,13 @@ package mage.sets.scarsofmirrodin; import java.util.UUID; +import mage.MageInt; import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.keyword.InfectAbility; import mage.cards.CardImpl; import mage.constants.CardType; import mage.constants.Rarity; -import mage.game.permanent.token.InsectToken; +import mage.game.permanent.token.Token; /** * @@ -45,7 +47,8 @@ public class CarrionCall extends CardImpl { super(ownerId, 115, "Carrion Call", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{3}{G}"); this.expansionSetCode = "SOM"; - this.getSpellAbility().addEffect(new CreateTokenEffect(new InsectToken("SOM"), 2)); + // Put two 1/1 green Insect creature tokens with infect onto the battlefield. (They deal damage to creatures in the form of -1/-1 counters and to players in the form of poison counters.) + this.getSpellAbility().addEffect(new CreateTokenEffect(new CarrionCallInsectToken(), 2)); } public CarrionCall (final CarrionCall card) { @@ -57,3 +60,19 @@ public class CarrionCall extends CardImpl { return new CarrionCall(this); } } + +class CarrionCallInsectToken extends Token { + + public CarrionCallInsectToken() { + super("Insect", "1/1 green Insect creature tokens with infect"); + setOriginalExpansionSetCode("SOM"); + cardType.add(CardType.CREATURE); + color.setGreen(true); + subtype.add("Insect"); + power = new MageInt(1); + toughness = new MageInt(1); + + addAbility(InfectAbility.getInstance()); + } +} +