Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
9
scripts/2XaJNYUMQAmSOsqi.js
Normal file
9
scripts/2XaJNYUMQAmSOsqi.js
Normal file
@@ -0,0 +1,9 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user