diff --git a/Mage.Sets/src/mage/sets/championsofkamigawa/KondasBanner.java b/Mage.Sets/src/mage/sets/championsofkamigawa/KondasBanner.java index c9341083ec..ad919a29df 100644 --- a/Mage.Sets/src/mage/sets/championsofkamigawa/KondasBanner.java +++ b/Mage.Sets/src/mage/sets/championsofkamigawa/KondasBanner.java @@ -35,6 +35,7 @@ import mage.constants.*; import mage.abilities.Ability; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.effects.OneShotEffect; import mage.abilities.effects.common.continious.BoostAllEffect; import mage.abilities.keyword.ChangelingAbility; import mage.abilities.keyword.EquipAbility; @@ -66,13 +67,15 @@ public class KondasBanner extends CardImpl { this.supertype.add("Legendary"); this.subtype.add("Equipment"); + // Konda's Banner can be attached only to a legendary creature. + this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new InfoEffect())); + // Creatures that share a color with equipped creature get +1/+1. this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new KondasBannerColorBoostEffect())); // Creatures that share a creature type with equipped creature get +1/+1. this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new KondasBannerTypeBoostEffect())); - // Konda's Banner can be attached only to a legendary creature. // Equip {2} this.addAbility(new EquipAbility( Outcome.AddAbility, @@ -91,6 +94,28 @@ public class KondasBanner extends CardImpl { } } +class InfoEffect extends OneShotEffect { + + public InfoEffect() { + super(Outcome.Benefit); + this.staticText = "{this} can be attached only to a legendary creature"; + } + + public InfoEffect(final InfoEffect effect) { + super(effect); + } + + @Override + public InfoEffect copy() { + return new InfoEffect(this); + } + + @Override + public boolean apply(Game game, Ability source) { + return true; + } +} + class KondasBannerTypeBoostEffect extends BoostAllEffect { private static final String effectText = "Creatures that share a creature type with equipped creature get +1/+1"; diff --git a/Mage.Sets/src/mage/sets/magic2012/SuturedGhoul.java b/Mage.Sets/src/mage/sets/magic2012/SuturedGhoul.java index 65ca11de5c..c6fda17baf 100644 --- a/Mage.Sets/src/mage/sets/magic2012/SuturedGhoul.java +++ b/Mage.Sets/src/mage/sets/magic2012/SuturedGhoul.java @@ -70,7 +70,7 @@ public class SuturedGhoul extends CardImpl { // Sutured Ghoul's power is equal to the total power of the exiled cards and its toughness is equal to their total toughness. BoostSourceEffect effect = new BoostSourceEffect(new SuturedGhoulPowerCount(), new SuturedGhoulToughnessCount(), Duration.WhileOnBattlefield); - effect.setRule(staticText2); + effect.setText(staticText2); this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect)); } diff --git a/Mage.Sets/src/mage/sets/returntoravnica/SlimeMolding.java b/Mage.Sets/src/mage/sets/returntoravnica/SlimeMolding.java index 3c56268353..f83faf99f5 100644 --- a/Mage.Sets/src/mage/sets/returntoravnica/SlimeMolding.java +++ b/Mage.Sets/src/mage/sets/returntoravnica/SlimeMolding.java @@ -97,6 +97,7 @@ class OozeToken extends Token { public OozeToken() { super("Ooze", "X/X green ooze creature token"); + cardType.add(CardType.CREATURE); color.setGreen(true); subtype.add("Ooze"); diff --git a/Mage.Sets/src/mage/sets/riseoftheeldrazi/SoulsurgeElemental.java b/Mage.Sets/src/mage/sets/riseoftheeldrazi/SoulsurgeElemental.java index 207b50671c..5fe13e57fd 100644 --- a/Mage.Sets/src/mage/sets/riseoftheeldrazi/SoulsurgeElemental.java +++ b/Mage.Sets/src/mage/sets/riseoftheeldrazi/SoulsurgeElemental.java @@ -36,6 +36,7 @@ import mage.MageInt; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount; import mage.abilities.dynamicvalue.common.StaticValue; +import mage.abilities.effects.Effect; import mage.abilities.effects.common.continious.BoostSourceEffect; import mage.abilities.keyword.FirstStrikeAbility; import mage.cards.CardImpl; @@ -58,8 +59,13 @@ public class SoulsurgeElemental extends CardImpl { this.power = new MageInt(0); this.toughness = new MageInt(1); + // First strike this.addAbility(FirstStrikeAbility.getInstance()); - this.addAbility(new SimpleStaticAbility(Zone.ALL, new BoostSourceEffect(new PermanentsOnBattlefieldCount(new FilterControlledCreaturePermanent()), new StaticValue(0), Duration.EndOfGame))); + + // Soulsurge Elemental's power is equal to the number of creatures you control. + Effect effect = new BoostSourceEffect(new PermanentsOnBattlefieldCount(new FilterControlledCreaturePermanent()), new StaticValue(0), Duration.EndOfGame); + effect.setText("{this}'s power is equal to the number of creatures you control"); + this.addAbility(new SimpleStaticAbility(Zone.ALL, effect)); } public SoulsurgeElemental(final SoulsurgeElemental card) { diff --git a/Mage/src/mage/abilities/effects/common/continious/BoostSourceEffect.java b/Mage/src/mage/abilities/effects/common/continious/BoostSourceEffect.java index e587a5c839..f9ec27473a 100644 --- a/Mage/src/mage/abilities/effects/common/continious/BoostSourceEffect.java +++ b/Mage/src/mage/abilities/effects/common/continious/BoostSourceEffect.java @@ -100,10 +100,6 @@ public class BoostSourceEffect extends ContinuousEffectImpl i return false; } - public void setRule(String value) { - staticText = value; - } - private void setText() { StringBuilder sb = new StringBuilder(); sb.append("{this} gets ");