updated Steamflogger Boss's text, fixed its filter

This commit is contained in:
Evan Kranzler 2018-06-24 22:38:34 -04:00
parent 27ff409f19
commit fc9804893b

View file

@ -1,11 +1,9 @@
package mage.cards.s;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.InfoEffect;
import mage.abilities.effects.common.continuous.BoostControlledEffect;
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
@ -17,7 +15,6 @@ import mage.constants.Duration;
import mage.constants.SubType;
import mage.constants.Zone;
import mage.filter.common.FilterCreaturePermanent;
import static mage.filter.predicate.permanent.ControllerControlsIslandPredicate.filter;
/**
*
@ -25,6 +22,9 @@ import static mage.filter.predicate.permanent.ControllerControlsIslandPredicate.
*/
public final class SteamfloggerBoss extends CardImpl {
private static final FilterCreaturePermanent filter
= new FilterCreaturePermanent(SubType.RIGGER, "Rigger creatures");
public SteamfloggerBoss(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}");
@ -34,15 +34,28 @@ public final class SteamfloggerBoss extends CardImpl {
this.toughness = new MageInt(3);
// Other Rigger creatures you control get +1/+0 and have haste.
Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD,
new BoostControlledEffect(1, 0, Duration.WhileOnBattlefield, new FilterCreaturePermanent(SubType.RIGGER, "Rigger creatures"), true));
Effect effect = new GainAbilityControlledEffect(HasteAbility.getInstance(), Duration.WhileOnBattlefield, filter);
effect.setText("and have haste");
ability.addEffect(effect);
Ability ability = new SimpleStaticAbility(
Zone.BATTLEFIELD,
new BoostControlledEffect(
1, 0, Duration.WhileOnBattlefield,
filter, true
)
);
ability.addEffect(new GainAbilityControlledEffect(
HasteAbility.getInstance(),
Duration.WhileOnBattlefield,
filter
).setText("and have haste"));
this.addAbility(ability);
// If a Rigger you control would assemble a Contraption, it assembles two Contraptions instead.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new InfoEffect("If a Rigger you control would assemble a Contraption, it assembles two Contraptions instead. (NOT IMPLEMENTED)")));
this.addAbility(new SimpleStaticAbility(
Zone.BATTLEFIELD,
new InfoEffect(
"If a Rigger you control would assemble a Contraption, "
+ "it assembles two Contraptions instead. (NOT IMPLEMENTED)"
)
));
}