[Fix] TagTeamRoll Critical Damage (#1371)

* Made some handlign for the damage when a tagTeamRoll crits

* Fixed so hope is taken from the initiator if the roll is with fear

* Raised verison
This commit is contained in:
WBHarry 2025-12-07 00:03:18 +01:00 committed by GitHub
parent 6ae00e15bd
commit 2a622a7363
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 67 additions and 30 deletions

View file

@ -451,3 +451,8 @@ export async function waitForDiceSoNice(message) {
await game.dice3d.waitFor3DAnimationByMessageID(message.id);
}
}
export async function getCritDamageBonus(formula) {
const critRoll = new Roll(formula);
return critRoll.dice.reduce((acc, dice) => acc + dice.faces, 0);
}