mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
patching up possible NPEs on quiet speculation
This commit is contained in:
parent
f1343dd03f
commit
099e490e4d
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ class SearchLibraryPutInGraveEffect extends SearchEffect {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
UUID targetPlayerID = source.getFirstTarget();
|
||||
if (controller.searchLibrary(target, game, targetPlayerID)) {
|
||||
if (controller != null && targetPlayerID != null && controller.searchLibrary(target, game, targetPlayerID)) {
|
||||
if (target.getTargets().size() > 0) {
|
||||
Cards cards = new CardsImpl(target.getTargets());
|
||||
controller.revealCards("Quiet Speculation", cards, game);
|
||||
|
|
Loading…
Reference in a new issue