mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
Fixed NPE on playersList usage
This commit is contained in:
parent
6fa4c0b8f2
commit
cf5b474c29
2 changed files with 2 additions and 2 deletions
|
|
@ -1250,7 +1250,7 @@ public class Combat implements Serializable, Copyable<Combat> {
|
|||
case RIGHT:
|
||||
players = game.getState().getPlayerList(attackingPlayerId);
|
||||
opponent = players.getPrevious(game);
|
||||
while (attackingPlayer.isInGame()) {
|
||||
while (opponent != null && attackingPlayer.isInGame()) {
|
||||
if (attackingPlayer.hasOpponent(opponent.getId(), game)) {
|
||||
attackablePlayers.add(opponent.getId());
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue