forked from External/mage
cards
This commit is contained in:
parent
89770db58e
commit
99e368df92
8 changed files with 512 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ public class PutLibraryIntoGraveTargetEffect extends OneShotEffect<PutLibraryInt
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getFirstTarget());
|
||||
Player player = game.getPlayer(targetPointer.getFirst(source));
|
||||
if (player != null) {
|
||||
// putting cards to grave shouldn't end the game, so getting minimun available
|
||||
int cardsCount = Math.min(amount.calculate(game, source), player.getLibrary().size());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue