mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
ComputerPlayer2 NullPointerException fix.
This commit is contained in:
parent
080e2c6238
commit
422be868ff
1 changed files with 1 additions and 1 deletions
|
@ -646,7 +646,7 @@ public class ComputerPlayer2 extends ComputerPlayer<ComputerPlayer2> implements
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void selectAttackers(Game game) {
|
public void selectAttackers(Game game) {
|
||||||
if (logger.isDebugEnabled() && combat == null || combat.getGroups().isEmpty())
|
if (logger.isDebugEnabled() && (combat == null || combat.getGroups().isEmpty()))
|
||||||
logger.debug("not attacking");
|
logger.debug("not attacking");
|
||||||
if (combat != null) {
|
if (combat != null) {
|
||||||
UUID opponentId = game.getCombat().getDefenders().iterator().next();
|
UUID opponentId = game.getCombat().getDefenders().iterator().next();
|
||||||
|
|
Loading…
Reference in a new issue