mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 23:41:59 +00:00
teammode: bots can attack each other now to prevent them from ganging up on players
This commit is contained in:
@@ -606,6 +606,9 @@ export class PlayerImpl implements Player {
|
||||
if (this.team() == null || other.team() == null) {
|
||||
return false;
|
||||
}
|
||||
if (this.team() == Team.Bot || other.team() == Team.Bot) {
|
||||
return false;
|
||||
}
|
||||
return this._team == other.team();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user