Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/core/execution/PlayerExecution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,13 @@ export class PlayerExecution implements Execution {
// Record stats
this.mg.stats().goldWork(this.player, goldFromWorkers);

const alliances = Array.from(this.player.alliances());
for (const alliance of alliances) {
for (const alliance of this.player.alliances()) {
if (alliance.expiresAt() <= this.mg.ticks()) {
alliance.expire();
}
}

const embargoes = this.player.getEmbargoes();
for (const embargo of embargoes) {
for (const embargo of this.player.getEmbargoes()) {
if (
embargo.isTemporary &&
this.mg.ticks() - embargo.createdAt >
Expand Down
Loading