diff --git a/extension.xml b/extension.xml
index e593895..3a8ed45 100644
--- a/extension.xml
+++ b/extension.xml
@@ -6,7 +6,7 @@
60
Feature: Live Hitpoints
- 2.12
+ 2.13
bmos (Wil Thieme)
This extension automates changes to hitpoints based on an ability score.
@@ -22,7 +22,7 @@
-
+
diff --git a/scripts/livehitpoints_npc.lua b/scripts/livehitpoints_npc.lua
index ea83130..9597e6b 100644
--- a/scripts/livehitpoints_npc.lua
+++ b/scripts/livehitpoints_npc.lua
@@ -119,9 +119,9 @@ local function getRolled(nodeNPC)
local sOptHRNH = OptionsManager.getOption("HRNH")
if sOptHRNH == "max" then
- nRolled = DiceManager.evalDiceString(sHD, true, true)
+ nRolled = DiceManager.evalDiceString(sHD, {["bMax"] = true})
elseif sOptHRNH == "random" then
- nRolled = math.max(DiceManager.evalDiceString(sHD, true), 1)
+ nRolled = math.max(DiceManager.evalDiceString(sHD), 1)
end
return nRolled