Skip to content

Commit d3f4bcc

Browse files
committed
force != ally ...
1 parent be5c670 commit d3f4bcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/bwapi/Player.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public Force getForce() {
5151
}
5252

5353
public boolean isAlly(final Player player) {
54-
return getForce().equals(player.getForce());
54+
return playerData.isAlly(player.getID());
5555
}
5656

5757
//TODO FIX in 4.3.0

0 commit comments

Comments
 (0)