Fix scripts !
This commit is contained in:
@@ -3,12 +3,12 @@ if (args.attackerTest.data.preData.characteristic !== "s") return;
|
||||
|
||||
const SL = args.opposedTest.data.opposeResult.differenceSL;
|
||||
|
||||
const targetId = this.effet.getFlag("wfrp4e", "target");
|
||||
const targetId = this.effect.getFlag("wfrp4e", "target");
|
||||
const target = canvas.scene.tokens.get(targetId);
|
||||
|
||||
if (SL > 4) {
|
||||
args.opposedTest.data.opposeResult.other.push(`<b>${args.defenderTest.actor.name}</b> a été forcé de laisser partir <b>${target.name}</b>.`);
|
||||
return await this.effet.delete();
|
||||
return await this.effect.delete();
|
||||
}
|
||||
|
||||
if (SL > 0) {
|
||||
|
||||
Reference in New Issue
Block a user