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());
if (controller != null) {
Spell spell = game.getStack().getSpell(source.getSourceId());
if (spell != null) {
Card spellCard = game.getStack().getSpell(source.getSourceId()).getCard();
if (spell != null && !spell.isCopy()) {
Card spellCard = spell.getCard();
if (spellCard != null) {
controller.moveCardToLibraryWithInfo(spellCard, source, game, Zone.STACK, toTop, true);
}