mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 22:12:03 -08:00
Update SaddleTargetMountEffect and GuidelightMatrix
changed SaddleTargetMountEffect apply to pass first target changed GuidelightMatrix to not use composite cost
This commit is contained in:
parent
b9c1bd09a8
commit
9a0cfaa5e7
2 changed files with 3 additions and 8 deletions
|
|
@ -41,9 +41,8 @@ public final class GuidelightMatrix extends CardImpl {
|
|||
// When this artifact enters, draw a card.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(1)));
|
||||
// {2}, {T}: Target Mount you control becomes saddled until end of turn. Activate only as a sorcery.
|
||||
Ability saddledAbility = new ActivateAsSorceryActivatedAbility(new SaddleTargetMountEffect(),
|
||||
new CompositeCost(new ManaCostsImpl<>("{2}"), new TapSourceCost(), "{2}, {T}")
|
||||
);
|
||||
Ability saddledAbility = new ActivateAsSorceryActivatedAbility(new SaddleTargetMountEffect(), new ManaCostsImpl<>("{2}"));
|
||||
saddledAbility.addCost(new TapSourceCost());
|
||||
saddledAbility.addTarget(new TargetPermanent(mountFilter));
|
||||
this.addAbility(saddledAbility);
|
||||
// {2}, {T}: Target Vehicle you control becomes an artifact creature until end of turn.
|
||||
|
|
|
|||
|
|
@ -34,11 +34,7 @@ public class SaddleTargetMountEffect extends OneShotEffect {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Permanent targetMount = game.getPermanent(getTargetPointer().getFirst(game, source));
|
||||
if (targetMount == null || !targetMount.hasSubtype(SubType.MOUNT, game)) {
|
||||
return false;
|
||||
}
|
||||
return SaddleAbility.applySaddle(targetMount, game);
|
||||
return SaddleAbility.applySaddle(game.getPermanent(getTargetPointer().getFirst(game, source)), game);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue