fixed some range of influence issues

This commit is contained in:
Evan Kranzler 2017-10-16 18:12:57 -04:00
parent 587e8a75ef
commit 457269cb12
3 changed files with 19 additions and 14 deletions

View file

@ -3484,9 +3484,10 @@ public abstract class PlayerImpl implements Player, Serializable {
}
@Override
public boolean hasOpponent(UUID playerToCheckId, Game game
) {
return !this.getId().equals(playerToCheckId) && game.isOpponent(this, playerToCheckId);
public boolean hasOpponent(UUID playerToCheckId, Game game) {
return !this.getId().equals(playerToCheckId)
&& game.isOpponent(this, playerToCheckId)
&& getInRange().contains(playerToCheckId);
}
@Override