mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-27 23:36:13 +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) {
|
if (this.team() == null || other.team() == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (this.team() == Team.Bot || other.team() == Team.Bot) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return this._team == other.team();
|
return this._team == other.team();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user