Skip to content

Commit 4f7a1b9

Browse files
committed
Fix relation update logic in warship retaliation to correctly reflect player interactions
1 parent 3e4dc0e commit 4f7a1b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/execution/nation/NationWarshipBehavior.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export class NationWarshipBehavior {
156156
new ConstructionExecution(this.player, UnitType.Warship, tile),
157157
);
158158
this.emojiBehavior.maybeSendEmoji(enemy, EMOJI_WARSHIP_RETALIATION);
159-
enemy.updateRelation(this.player, reason === "trade" ? -7.5 : -15);
159+
this.player.updateRelation(enemy, reason === "trade" ? -7.5 : -15);
160160
}
161161
}
162162

0 commit comments

Comments
 (0)