From 63a4e237aa6042ae5e8639a174b54bfd310fb286 Mon Sep 17 00:00:00 2001 From: The Happy Anarchist Date: Mon, 2 Nov 2020 22:34:57 -1000 Subject: [PATCH] Bugfix - Unable to roll saves for pre 6.monsters Monster sheet could not roll saving throws due to lack of save mod in tweaks. Removed save mod check for monsters. --- Changelog.txt | 7 +++++++ src/module/actor/entity.js | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Changelog.txt b/Changelog.txt index 33fc1ab..769d041 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,3 +1,10 @@ +**v0.7.2 Monster Save Fix** +**MINOR CHANGES:** +Changed the changlog to bold text. + +**BUG FIXES:** +Monster sheet was unable to roll saves for monsters pre-dating 0.7.0 release. + **v0.7.1 Cosmetics** **MINOR CHANGES:** Fixed tab heights and cleaned up sheets for legibility. diff --git a/src/module/actor/entity.js b/src/module/actor/entity.js index 3e12272..3b53e6b 100644 --- a/src/module/actor/entity.js +++ b/src/module/actor/entity.js @@ -121,8 +121,9 @@ export class AcksActor extends Actor { rollSave(save, options = {}) { const label = game.i18n.localize(`ACKS.saves.${save}.long`); const rollParts = ["1d20"]; - rollParts.push(this.data.data.save.mod); - + if (this.data.type == "character") { + rollParts.push(this.data.data.save.mod); + } let data = {}; if (this.data.type == "character") {