ReturnToLibrarySpellEffect - Do not apply to spell copies (fixes #7634)

This commit is contained in:
Daniel Bomar 2021-03-01 16:40:40 -06:00
parent f52753ad61
commit 10f8022043
No known key found for this signature in database
GPG key ID: C86C8658F4023918

View file

@ -34,8 +34,8 @@ public class ReturnToLibrarySpellEffect extends OneShotEffect {
Player controller = game.getPlayer(source.getControllerId()); Player controller = game.getPlayer(source.getControllerId());
if (controller != null) { if (controller != null) {
Spell spell = game.getStack().getSpell(source.getSourceId()); Spell spell = game.getStack().getSpell(source.getSourceId());
if (spell != null) { if (spell != null && !spell.isCopy()) {
Card spellCard = game.getStack().getSpell(source.getSourceId()).getCard(); Card spellCard = spell.getCard();
if (spellCard != null) { if (spellCard != null) {
controller.moveCardToLibraryWithInfo(spellCard, source, game, Zone.STACK, toTop, true); controller.moveCardToLibraryWithInfo(spellCard, source, game, Zone.STACK, toTop, true);
} }