From ac03b7e758ba27cb09b754d7a7ceef6bdea6a164 Mon Sep 17 00:00:00 2001 From: Sven Balzer <4653051+Kyuusokuna@users.noreply.github.com> Date: Thu, 29 May 2025 15:48:35 +0200 Subject: [PATCH] fix calculation of ranged combat talents attack value --- src/main.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.mjs b/src/main.mjs index b5cec2e..e9bc9cf 100644 --- a/src/main.mjs +++ b/src/main.mjs @@ -694,7 +694,7 @@ class DSA41_CharacterData extends TypeDataModel { this.kampftalente = this.parent.items.filter((x) => x.type === "Kampftalent").sort((a, b) => a.name > b.name); for(const talent of this.kampftalente) { this.computed.kampf.talente[talent.name] = {}; - this.computed.kampf.talente[talent.name].attacke = this.computed.attacke.wert + talent.system.attacke; + this.computed.kampf.talente[talent.name].attacke = (talent.system.kategorie === "fernkampf" ? this.computed.fernkampf.wert : this.computed.attacke.wert) + talent.system.attacke; this.computed.kampf.talente[talent.name].parade = this.computed.parade.wert + talent.system.parade; this.computed.kampf.talente[talent.name].talent_attacke = talent.system.attacke;