Merge pull request #302 from Jonpot/patch-3

Fix Action scope variables
This commit is contained in:
Stefan Zermatten
2022-11-22 02:32:17 +02:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -163,8 +163,9 @@ function rollAttack(attack, scope) {
value = rollDice(1, 20)[0];
resultPrefix = `1d20 [${value}] ${rollModifierText}`
}
scope['$attackRoll'] = { value };
scope['$attackDiceRoll'] = { value };
const result = value + attack.value;
scope['$attackRoll'] = { result };
const { criticalHit, criticalMiss } = applyCrits(value, scope);
return { resultPrefix, result, value, criticalHit, criticalMiss };
}

View File

@@ -1,6 +1,6 @@
{
"name": "dicecloud",
"version": "2.0.43",
"version": "2.0.44",
"description": "Unofficial Online Realtime D&D 5e App",
"license": "GPL-3.0",
"repository": {