mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
* Press into Service - Fixed wrong target handling for the gain control ability.
This commit is contained in:
parent
ebf7da176b
commit
16bf5d636a
1 changed files with 5 additions and 1 deletions
|
@ -28,6 +28,7 @@
|
||||||
package mage.sets.oathofthegatewatch;
|
package mage.sets.oathofthegatewatch;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
import mage.abilities.effects.Effect;
|
||||||
import mage.abilities.effects.common.UntapTargetEffect;
|
import mage.abilities.effects.common.UntapTargetEffect;
|
||||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||||
import mage.abilities.effects.common.continuous.GainControlTargetEffect;
|
import mage.abilities.effects.common.continuous.GainControlTargetEffect;
|
||||||
|
@ -38,6 +39,7 @@ import mage.constants.CardType;
|
||||||
import mage.constants.Duration;
|
import mage.constants.Duration;
|
||||||
import mage.constants.Rarity;
|
import mage.constants.Rarity;
|
||||||
import mage.target.common.TargetCreaturePermanent;
|
import mage.target.common.TargetCreaturePermanent;
|
||||||
|
import mage.target.targetpointer.SecondTargetPointer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -54,7 +56,9 @@ public class PressIntoService extends CardImpl {
|
||||||
|
|
||||||
// Gain control of target creature until end of turn. Untap that creature. It gains haste until end of turn.
|
// Gain control of target creature until end of turn. Untap that creature. It gains haste until end of turn.
|
||||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||||
this.getSpellAbility().addEffect(new GainControlTargetEffect(Duration.EndOfTurn));
|
Effect effect = new GainControlTargetEffect(Duration.EndOfTurn);
|
||||||
|
effect.setTargetPointer(new SecondTargetPointer()); // First target is used by Support
|
||||||
|
this.getSpellAbility().addEffect(effect);
|
||||||
this.getSpellAbility().addEffect(new UntapTargetEffect());
|
this.getSpellAbility().addEffect(new UntapTargetEffect());
|
||||||
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn));
|
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue