mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-16 15:12:34 +00:00
Merge branch 'v26'
This commit is contained in:
@@ -789,8 +789,8 @@ export class PlayerImpl implements Player {
|
||||
return this._team === other.team();
|
||||
}
|
||||
|
||||
isFriendly(other: Player, treatAFKFriendly: boolean = false): boolean {
|
||||
if (other.isDisconnected() && !treatAFKFriendly) {
|
||||
isFriendly(other: Player): boolean {
|
||||
if (other.isDisconnected()) {
|
||||
return false;
|
||||
}
|
||||
return this.isOnSameTeam(other) || this.isAlliedWith(other);
|
||||
|
||||
Reference in New Issue
Block a user