Skip to content

Commit 61262e9

Browse files
committed
Fix error in getUnitTraitCurrent()
1 parent f71c156 commit 61262e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modtools/set-personality.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function getUnitTraitCurrent(unit, trait)
8585
local base = getUnitTraitBase(unit, trait)
8686
local value = base
8787
if unit.status.current_soul.personality.temporary_trait_changes ~= nil then
88-
value = value + unit.status.current_soul.personality.temporary_trait_changes[trait]
88+
value = value + unit.status.current_soul.personality.temporary_trait_changes.traits[trait]
8989
end
9090

9191
return value

0 commit comments

Comments
 (0)