forked from public/foundryvtt-wh4-lang-fr-fr
Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
12
scripts/eIiiDhJohYez26qY.js
Normal file
12
scripts/eIiiDhJohYez26qY.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const {targetUuid} = this.effect.flags.wfrp4e;
|
||||
|
||||
if (args.actor.uuid !== targetUuid) return;
|
||||
|
||||
const recordedWounds = this.effect.getFlag("wfrp4e", "damageToReturn");
|
||||
|
||||
if (!recordedWounds) return;
|
||||
|
||||
args.modifiers.other.push({label: this.effect.name, value: recordedWounds});
|
||||
args.totalWoundLoss += recordedWounds
|
||||
|
||||
this.effect.unsetFlag("wfrp4e", "damageToReturn");
|
||||
Reference in New Issue
Block a user