From 49154058fcf48bbd939f8a19798709d61096cc81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B6ckelmann?= Date: Sat, 17 Feb 2024 19:07:24 +0100 Subject: [PATCH] Expanding conditions only when they belong to the same scriptAccount --- .../game-model/gamesystems/conditions/ScriptAccountCondition.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/game-model/gamesystems/conditions/ScriptAccountCondition.ts b/src/app/game-model/gamesystems/conditions/ScriptAccountCondition.ts index 9284c5a..5592421 100644 --- a/src/app/game-model/gamesystems/conditions/ScriptAccountCondition.ts +++ b/src/app/game-model/gamesystems/conditions/ScriptAccountCondition.ts @@ -17,7 +17,7 @@ export class ScriptAccountCondition { } extendCondition(condition: ScriptAccountCondition) { - if(!this.isContradicting(condition)) { + if(!this.isContradicting(condition) && this.scriptAccount === condition.scriptAccount) { this.minValue = Math.min(this.minValue, condition.minValue); this.maxValue = Math.max(this.maxValue, condition.maxValue); }