mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
RevealAndSeparatePilesEffect - fixed NPE
This commit is contained in:
parent
49ce794c45
commit
05826fa8d8
1 changed files with 5 additions and 1 deletions
|
@ -92,7 +92,11 @@ public class RevealAndSeparatePilesEffect extends OneShotEffect {
|
|||
Target targetOpponent = new TargetOpponent(true);
|
||||
controller.chooseTarget(Outcome.Neutral, targetOpponent, source, game);
|
||||
opponent = game.getPlayer(targetOpponent.getFirstTarget());
|
||||
game.informPlayers(controller.getLogName() + " chose " + opponent.getLogName() + " to " + message);
|
||||
if (opponent != null) {
|
||||
game.informPlayers(controller.getLogName() + " chose " + opponent.getLogName() + " to " + message);
|
||||
} else {
|
||||
game.informPlayers(controller.getLogName() + " chose nothing" + " to " + message);
|
||||
}
|
||||
}
|
||||
return opponent;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue