mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Player: getAllies should not return the player itself
This commit is contained in:
@@ -333,7 +333,7 @@ public class Player extends GameEntity implements Comparable<Player> {
|
|||||||
* Should keep player relations somewhere in the match structure
|
* Should keep player relations somewhere in the match structure
|
||||||
*/
|
*/
|
||||||
public final PlayerCollection getAllies() {
|
public final PlayerCollection getAllies() {
|
||||||
return game.getPlayers().filter(Predicates.not(PlayerPredicates.isOpponentOf(this)));
|
return getAllOtherPlayers().filter(Predicates.not(PlayerPredicates.isOpponentOf(this)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user