mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 13:20:43 +00:00
fake humans don't send alliance request if already sent one recently
This commit is contained in:
@@ -104,7 +104,7 @@ export class FakeHumanExecution implements Execution {
|
||||
|
||||
if (this.random.chance(10)) {
|
||||
const toAlly = this.random.randElement(enemies)
|
||||
if (!this.player.isAlliedWith(toAlly)) {
|
||||
if (!this.player.isAlliedWith(toAlly) && !this.player.recentOrPendingAllianceRequestWith(toAlly)) {
|
||||
this.player.createAllianceRequest(toAlly)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user