fake humans don't send alliance request if already sent one recently

This commit is contained in:
evanpelle
2024-10-01 16:21:36 -07:00
parent 2b8c719096
commit 1aee83d733
+1 -1
View File
@@ -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
}