Fix PressIntoService #8776 (#8820)

This commit is contained in:
Hidde van Bavel 2022-04-07 07:00:09 +02:00 committed by GitHub
parent df7b9ed9d0
commit 2cd196d652
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,18 +28,20 @@ public final class PressIntoService extends CardImpl {
getSpellAbility().addEffect(new SupportEffect(this, 2, false));
// Gain control of target creature until end of turn. Untap that creature. It gains haste until end of turn.
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
Effect effect = new GainControlTargetEffect(Duration.EndOfTurn);
effect.setTargetPointer(new SecondTargetPointer()); // First target is used by Support
this.getSpellAbility().addEffect(effect);
effect = new UntapTargetEffect();
effect.setText("Untap that creature");
effect.setTargetPointer(new SecondTargetPointer()); // First target is used by Support
this.getSpellAbility().addEffect(effect);
effect = new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn);
effect.setTargetPointer(new SecondTargetPointer()); // First target is used by Suppor
effect.setText("It gains haste until end of turn");
this.getSpellAbility().addEffect(effect);
this.getSpellAbility().addTarget(new TargetCreaturePermanent()); // First target is used by Support
this.getSpellAbility().addEffect(new GainControlTargetEffect(Duration.EndOfTurn)
.setText("Gain control of target creature until end of turn")
.setTargetPointer(new SecondTargetPointer())
);
this.getSpellAbility().addEffect(new UntapTargetEffect()
.setText("Untap that creature")
.setTargetPointer(new SecondTargetPointer())
);
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn)
.setText("It gains haste until end of turn")
.setTargetPointer(new SecondTargetPointer())
);
}
private PressIntoService(final PressIntoService card) {