Player: getAllies should not return the player itself

This commit is contained in:
Hanmac
2017-02-25 10:03:13 +00:00
parent d3356140d1
commit 571f69011b

View File

@@ -333,7 +333,7 @@ public class Player extends GameEntity implements Comparable<Player> {
* Should keep player relations somewhere in the match structure
*/
public final PlayerCollection getAllies() {
return game.getPlayers().filter(Predicates.not(PlayerPredicates.isOpponentOf(this)));
return getAllOtherPlayers().filter(Predicates.not(PlayerPredicates.isOpponentOf(this)));
}
/**