fix calculation of ranged combat talents attack value

This commit is contained in:
Sven Balzer 2025-05-29 15:48:35 +02:00
parent f21a5ebf06
commit ac03b7e758

View File

@ -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;