foundryvtt-wh4-lang-fr-fr/scripts/FiD3mvWIBHNNIuO9.js

8 lines
234 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
if (args.opposedTest.result.hitloc.value == "body")
{
if ((await new Roll("1d2").roll()).total == 1)
{
args.opposedTest.result.hitloc.value = "head"
this.script.scriptMessage(`Localisation changée : Tête`)
2024-05-16 17:57:51 +02:00
}
}