* Range Trooper - fixed wrong text;

This commit is contained in:
Oleg Agafonov 2020-04-19 23:42:53 +04:00
parent dfdc1e5e06
commit 3e8dbbd894

View file

@ -1,6 +1,5 @@
package mage.cards.r;
import java.util.UUID;
import mage.MageInt;
import mage.MageObject;
import mage.abilities.Ability;
@ -11,22 +10,23 @@ import mage.abilities.effects.Effect;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.ReturnToBattlefieldUnderOwnerControlTargetEffect;
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
import mage.constants.*;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.*;
import mage.filter.common.FilterControlledCreaturePermanent;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.target.common.TargetCreaturePermanent;
import mage.target.targetpointer.FixedTarget;
import java.util.UUID;
/**
*
* @author NinthWorld
*/
public final class RangeTrooper extends CardImpl {
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("Trooper creatures you control");
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("Trooper creatures");
static {
filter.add(SubType.TROOPER.getPredicate());
@ -34,14 +34,14 @@ public final class RangeTrooper extends CardImpl {
public RangeTrooper(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}");
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.TROOPER);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
// Trooper creatures you control have "When this creature enters that battlefield, you may exile target creature. Return that creature to the battlefield at the beginning of the next end step."
Ability ability = new EntersBattlefieldTriggeredAbility(new RangeTrooperEffect(), true, true);
Ability ability = new EntersBattlefieldTriggeredAbility(new RangeTrooperEffect(), true, false);
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
new GainAbilityControlledEffect(ability, Duration.WhileOnBattlefield, filter, false)));
@ -61,7 +61,7 @@ class RangeTrooperEffect extends OneShotEffect {
public RangeTrooperEffect() {
super(Outcome.Detriment);
staticText = "When this creature enters the battlefield, you may exile target creature. Return that creature to the battlefield at the beginning of the next end step";
staticText = "exile target creature. Return that creature to the battlefield at the beginning of the next end step";
}
public RangeTrooperEffect(final RangeTrooperEffect effect) {