mirror of
https://github.com/correl/mage.git
synced 2024-11-29 03:00:12 +00:00
ReturnToLibrarySpellEffect - Do not apply to spell copies (fixes #7634)
This commit is contained in:
parent
f52753ad61
commit
10f8022043
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue