mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-26 04:19:54 +02:00
[Fix] Improve HP Damage Multiplier Active Effect (#2110)
This commit is contained in:
parent
7fd2a7f17e
commit
82ce2f3052
3 changed files with 49 additions and 3 deletions
|
|
@ -105,9 +105,8 @@ export default class DamageField extends fields.SchemaField {
|
|||
const configDamage = config.damage.clone();
|
||||
configDamage.main &&= configDamage.main.toJSON();
|
||||
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(config.damage.main.total * multiplier * takenMultiplier);
|
||||
configDamage.main.total = Math.ceil(configDamage.main.total * takenMultiplier);
|
||||
}
|
||||
|
||||
damagePromises.push(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue