mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 19:56:43 +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) {
|
||||
if (other.isTraitor) {
|
||||
if (other.isTraitor()) {
|
||||
return false
|
||||
}
|
||||
const difficulty = this.mg.config().gameConfig().difficulty
|
||||
|
||||
Reference in New Issue
Block a user