mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
fix #11547 (Scholar of the Lost Trove)
This commit is contained in:
parent
7ff2570024
commit
0862461d6b
1 changed files with 2 additions and 1 deletions
|
|
@ -95,6 +95,7 @@ class ScholarOfTheLostTroveEffect extends OneShotEffect {
|
|||
if (!controller.chooseUse(Outcome.PlayForFree, "Cast " + card.getLogName() + '?', source, game)) {
|
||||
return true;
|
||||
}
|
||||
FixedTarget fixedTarget = new FixedTarget(card, game);
|
||||
game.getState().setValue("PlayFromNotOwnHandZone" + card.getId(), Boolean.TRUE);
|
||||
boolean cardWasCast = controller.cast(controller.chooseAbilityForCast(card, game, true),
|
||||
game, true, new ApprovingObject(source, game));
|
||||
|
|
@ -103,7 +104,7 @@ class ScholarOfTheLostTroveEffect extends OneShotEffect {
|
|||
return true;
|
||||
}
|
||||
ContinuousEffect effect = new ThatSpellGraveyardExileReplacementEffect(true);
|
||||
effect.setTargetPointer(new FixedTarget(card.getId(), game.getState().getZoneChangeCounter(card.getId())));
|
||||
effect.setTargetPointer(fixedTarget);
|
||||
effect.setText("If an instant or sorcery spell cast this way would be put into your graveyard this turn, exile it instead");
|
||||
game.addEffect(effect, source);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue