fix for zauber that do not take magieresistenz into account
This commit is contained in:
parent
80e6e1ad43
commit
e320c2f9ac
@ -1565,7 +1565,7 @@ class DSA41_ActorSheet extends DSA41_ApplicationMixin(ActorSheetV2) {
|
||||
const title = game.i18n.localize("DSA41.roll_types." + roll_type) + ": " + item.name;
|
||||
const data = await DSA41_Dialog.wait("Zauber", { window: {title: title}, item: item });
|
||||
|
||||
const zauberfertigkeitswert = item.system.zauberfertigkeitswert - data.modifikator - data.magieresistenz;
|
||||
const zauberfertigkeitswert = item.system.zauberfertigkeitswert - data.modifikator - (data.magieresistenz ?? null);
|
||||
const roll_modifier = zauberfertigkeitswert < 0 ? -zauberfertigkeitswert: 0;
|
||||
|
||||
if (hp_roll_modifier !== 0)
|
||||
@ -1589,7 +1589,7 @@ class DSA41_ActorSheet extends DSA41_ApplicationMixin(ActorSheetV2) {
|
||||
zauber: item,
|
||||
|
||||
modifikator: -data.modifikator,
|
||||
magieresistenz: -data.magieresistenz,
|
||||
magieresistenz: -(data.magieresistenz ?? 0),
|
||||
|
||||
attribute1: { type: item.system.attribute1, value: attribute1 },
|
||||
attribute2: { type: item.system.attribute2, value: attribute2 },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user