[FIN] Implement Memories Returning

This commit is contained in:
theelk801 2025-05-27 16:58:24 -04:00
parent 5e03fda7e9
commit 85d85a4b17
36 changed files with 168 additions and 40 deletions

View file

@ -1,6 +1,5 @@
package mage.abilities.effects.common;
import mage.MageObject;
import mage.abilities.Ability;
import mage.abilities.effects.OneShotEffect;
import mage.cards.Card;
@ -46,6 +45,6 @@ public class PutOnLibrarySourceEffect extends OneShotEffect {
if (onTop) {
return player.putCardsOnTopOfLibrary(card, game, source, false);
}
return player.putCardsOnBottomOfLibrary(card, game, source, false);
return player.putCardsOnBottomOfLibrary(card, game, source);
}
}

View file

@ -715,7 +715,7 @@ public interface Player extends MageItem, Copyable<Player> {
*/
boolean putCardsOnBottomOfLibrary(Cards cards, Game game, Ability source, boolean anyOrder);
boolean putCardsOnBottomOfLibrary(Card card, Game game, Ability source, boolean anyOrder);
boolean putCardsOnBottomOfLibrary(Card card, Game game, Ability source);
/**
* Moves the card to the top x position of the library

View file

@ -1034,8 +1034,8 @@ public abstract class PlayerImpl implements Player, Serializable {
}
@Override
public boolean putCardsOnBottomOfLibrary(Card card, Game game, Ability source, boolean anyOrder) {
return putCardsOnBottomOfLibrary(new CardsImpl(card), game, source, anyOrder);
public boolean putCardsOnBottomOfLibrary(Card card, Game game, Ability source) {
return putCardsOnBottomOfLibrary(new CardsImpl(card), game, source, false);
}
@Override