- Text fix

This commit is contained in:
jeffwadsworth 2020-06-19 14:58:44 -05:00
parent 2e7d01965e
commit fed6ddff8e

View file

@ -1,4 +1,3 @@
package mage.cards.m;
import java.util.UUID;
@ -9,6 +8,7 @@ import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
import mage.abilities.dynamicvalue.common.StaticValue;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.effects.common.continuous.GainAbilityAllEffect;
import mage.cards.CardImpl;
@ -35,11 +35,22 @@ public final class MagmaSliver extends CardImpl {
this.power = new MageInt(3);
this.toughness = new MageInt(3);
// All Slivers have "{tap}: Target Sliver creature gets +X/+0 until end of turn, where X is the number of Slivers on the battlefield."
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(new PermanentsOnBattlefieldCount(StaticFilters.FILTER_PERMANENT_CREATURE_SLIVERS), StaticValue.get(0), Duration.EndOfTurn, true), new TapSourceCost());
Target target = new TargetCreaturePermanent(new FilterCreaturePermanent(SubType.SLIVER, "Sliver creature"));
// All Slivers have "{tap}: Target Sliver creature gets +X/+0 until end of turn,
// where X is the number of Slivers on the battlefield."
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new BoostTargetEffect(new PermanentsOnBattlefieldCount(
StaticFilters.FILTER_PERMANENT_CREATURE_SLIVERS),
StaticValue.get(0), Duration.EndOfTurn, true),
new TapSourceCost());
Target target = new TargetCreaturePermanent(
new FilterCreaturePermanent(SubType.SLIVER, "Sliver creature"));
ability.addTarget(target);
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAllEffect(ability, Duration.WhileOnBattlefield, StaticFilters.FILTER_PERMANENT_CREATURE_SLIVERS)));
Effect effect = new GainAbilityAllEffect(ability, Duration.WhileOnBattlefield,
StaticFilters.FILTER_PERMANENT_CREATURE_SLIVERS);
effect.setText("All Slivers have \"{T}: Target Sliver creature gets +X/+0 until end of turn,"
+ "where X is the number of Slivers on the battlefield.\"");
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
effect));
}
public MagmaSliver(final MagmaSliver card) {