fixed some NPE issues with player target choosing

This commit is contained in:
Evan Kranzler 2022-03-25 21:16:38 -04:00
parent a6c2daeb5e
commit 945b60c8d0
5 changed files with 8 additions and 8 deletions

View file

@ -535,7 +535,7 @@ public class HumanPlayer extends PlayerImpl {
updateGameStatePriority("choose(5)", game);
prepareForResponse(game);
if (!isExecutingMacro()) {
game.fireSelectTargetEvent(getId(), new MessageToClient(target.getMessage(), getRelatedObjectName(source.getSourceId(), game)), targetIds, required, getOptions(target, options));
game.fireSelectTargetEvent(getId(), new MessageToClient(target.getMessage(), getRelatedObjectName(source, game)), targetIds, required, getOptions(target, options));
}
waitForResponse(game);