Files
foundryvtt-wh4-lang-fr-fr/scripts/2XaJNYUMQAmSOsqi.js

9 lines
276 B
JavaScript

const {targetUuid} = this.effect.flags.wfrp4e;
if (args.attacker.uuid !== targetUuid) return;
let recordedWounds = this.effect.getFlag("wfrp4e", "damageToReturn") ?? 0;
recordedWounds += args.totalWoundLoss;
this.effect.setFlag("wfrp4e", "damageToReturn", recordedWounds);