Refactor: replaced sourceId by source and introduced source param in some methods;

This commit is contained in:
Oleg Agafonov 2020-12-12 20:23:19 +04:00
parent 2bb472607b
commit db239a1055
3205 changed files with 7080 additions and 6795 deletions

View file

@ -37,14 +37,14 @@ public class ShuffleIntoLibrarySourceEffect extends OneShotEffect {
if (mageObject instanceof Permanent) {
owner = game.getPlayer(((Permanent) mageObject).getOwnerId());
if (owner != null) {
owner.moveCardToLibraryWithInfo((Permanent)mageObject, source.getSourceId(), game, fromZone, true, true);
owner.moveCardToLibraryWithInfo((Permanent) mageObject, source, game, fromZone, true, true);
owner.shuffleLibrary(source, game);
return true;
}
} else if (mageObject instanceof Card) {
owner = game.getPlayer(((Card) mageObject).getOwnerId());
if (owner != null) {
owner.moveCardToLibraryWithInfo((Card)mageObject, source.getSourceId(), game, fromZone, true, true);
owner.moveCardToLibraryWithInfo((Card)mageObject, source, game, fromZone, true, true);
owner.shuffleLibrary(source, game);
return true;
}