We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48b076c commit c275d63Copy full SHA for c275d63
src/core/execution/FakeHumanExecution.ts
@@ -92,9 +92,11 @@ export class FakeHumanExecution implements Execution {
92
// this.isTraitor = true
93
}
94
95
- this.player =
96
- this.mg.player(this.nation.playerInfo.id) ??
97
- this.mg.addPlayer(this.nation.playerInfo);
+ if (!this.mg.hasPlayer(this.nation.playerInfo.id)) {
+ this.player = this.mg.addPlayer(this.nation.playerInfo);
+ } else {
98
+ this.player = this.mg.player(this.nation.playerInfo.id);
99
+ }
100
101
102
private updateRelationsFromEmbargos() {
0 commit comments