mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-21 18:09:54 +02:00
Added overrides to modifierTotal and total getters in DamageRoll to addin critical damage when applicable
This commit is contained in:
parent
14edc7f4ca
commit
c0fe127df4
3 changed files with 13 additions and 3 deletions
|
|
@ -107,7 +107,7 @@ export default class DamageField extends fields.SchemaField {
|
|||
if (configDamage.main) {
|
||||
const multiplier = config.actionActor?.system.rules?.attack?.damage?.hpDamageMultiplier ?? 1;
|
||||
const takenMultiplier = actor.system.rules?.attack?.damage?.hpDamageTakenMultiplier;
|
||||
configDamage.main.total = Math.ceil(configDamage.main.total * multiplier * takenMultiplier);
|
||||
configDamage.main.total = Math.ceil(config.damage.main.total * multiplier * takenMultiplier);
|
||||
}
|
||||
|
||||
damagePromises.push(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue