mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-07 19:21:30 +00:00
bugfix: didn't call isTraitor so NPCs treated everyone as traitor
This commit is contained in:
@@ -141,7 +141,7 @@ export class FakeHumanExecution implements Execution {
|
|||||||
}
|
}
|
||||||
|
|
||||||
shouldDiscourageAttack(other: Player) {
|
shouldDiscourageAttack(other: Player) {
|
||||||
if (other.isTraitor) {
|
if (other.isTraitor()) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
const difficulty = this.mg.config().gameConfig().difficulty
|
const difficulty = this.mg.config().gameConfig().difficulty
|
||||||
|
|||||||
Reference in New Issue
Block a user