diff --git a/src/core/execution/FakeHumanExecution.ts b/src/core/execution/FakeHumanExecution.ts index 277c2abe7..9692a14cb 100644 --- a/src/core/execution/FakeHumanExecution.ts +++ b/src/core/execution/FakeHumanExecution.ts @@ -98,7 +98,8 @@ export class FakeHumanExecution implements Execution { /* When player is hostile starts embargo. Do not stop until neutral again */ if ( player.relation(other) <= Relation.Hostile && - !player.hasEmbargoAgainst(other) + !player.hasEmbargoAgainst(other) && + !player.isOnSameTeam(other) ) { player.addEmbargo(other, false); } else if ( diff --git a/src/core/execution/alliance/BreakAllianceExecution.ts b/src/core/execution/alliance/BreakAllianceExecution.ts index de614c1cc..db5c158d9 100644 --- a/src/core/execution/alliance/BreakAllianceExecution.ts +++ b/src/core/execution/alliance/BreakAllianceExecution.ts @@ -37,7 +37,7 @@ export class BreakAllianceExecution implements Execution { this.requestor.breakAlliance(alliance); this.recipient.updateRelation(this.requestor, -200); for (const player of this.mg.players()) { - if (player !== this.requestor) { + if (player !== this.requestor && !player.isOnSameTeam(this.requestor)) { player.updateRelation(this.requestor, -40); } }