From d93e533c75e82fdfbc47620238b70cb9987eb7bb Mon Sep 17 00:00:00 2001 From: PurpleCrowbar <26198472+PurpleCrowbar@users.noreply.github.com> Date: Thu, 23 Mar 2023 20:18:52 +0000 Subject: [PATCH] Clean up Ghoulcaller Gisa code, fix zombie tokens created not having images in some sets --- Mage.Sets/src/mage/cards/g/GhoulcallerGisa.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Mage.Sets/src/mage/cards/g/GhoulcallerGisa.java b/Mage.Sets/src/mage/cards/g/GhoulcallerGisa.java index fed5c45339..5b979d2ad5 100644 --- a/Mage.Sets/src/mage/cards/g/GhoulcallerGisa.java +++ b/Mage.Sets/src/mage/cards/g/GhoulcallerGisa.java @@ -8,7 +8,6 @@ import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.common.SacrificeTargetCost; import mage.abilities.costs.common.TapSourceCost; import mage.abilities.costs.mana.ManaCostsImpl; -import mage.abilities.dynamicvalue.DynamicValue; import mage.abilities.dynamicvalue.common.SacrificeCostCreaturesPower; import mage.abilities.effects.Effect; import mage.abilities.effects.common.CreateTokenEffect; @@ -19,7 +18,6 @@ import mage.constants.SubType; import mage.constants.SuperType; import mage.constants.Zone; import mage.filter.StaticFilters; -import mage.game.permanent.token.Token; import mage.game.permanent.token.ZombieToken; import mage.target.common.TargetControlledCreaturePermanent; @@ -39,10 +37,7 @@ public final class GhoulcallerGisa extends CardImpl { this.toughness = new MageInt(4); // {B}, {tap}, Sacrifice another creature: create X 2/2 black Zombie creature tokens, where X is the sacrificed creature's power. - DynamicValue xValue = SacrificeCostCreaturesPower.instance; - Token zombie = new ZombieToken(); - zombie.setTokenType(2); - Effect effect = new CreateTokenEffect(zombie, xValue); + Effect effect = new CreateTokenEffect(new ZombieToken(), SacrificeCostCreaturesPower.instance); effect.setText("create X 2/2 black Zombie creature tokens, where X is the sacrificed creature's power"); Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{B}")); ability.addCost(new TapSourceCost());