mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-10 01:05:41 +00:00
add traitor icon, bots don't ally traitors
This commit is contained in:
@@ -111,7 +111,6 @@ export class AttackExecution implements Execution {
|
||||
}
|
||||
if (this.breakAlliance) {
|
||||
this.breakAlliance = false
|
||||
alert('set player traitor')
|
||||
this._owner.breakAllianceWith(this.target as Player)
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,11 @@ export class BotExecution implements Execution {
|
||||
}
|
||||
|
||||
this.bot.incomingAllianceRequests().forEach(ar => {
|
||||
ar.accept()
|
||||
if (ar.requestor().isTraitor()) {
|
||||
ar.reject()
|
||||
} else {
|
||||
ar.accept()
|
||||
}
|
||||
})
|
||||
|
||||
if (this.neighborsTerraNullius) {
|
||||
|
||||
Reference in New Issue
Block a user