From 1c39ca2c459b9ca7f6835bd2fda0d25fe6344465 Mon Sep 17 00:00:00 2001 From: DarkGod <darkgod@net-core.org> Date: Wed, 8 Jul 2020 16:31:00 +0200 Subject: [PATCH] Fixed Zigur patrols crash --- game/modules/tome/class/GameState.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/game/modules/tome/class/GameState.lua b/game/modules/tome/class/GameState.lua index 985dc0a104..70f22f9d98 100644 --- a/game/modules/tome/class/GameState.lua +++ b/game/modules/tome/class/GameState.lua @@ -2115,7 +2115,7 @@ function _M:applyRandomClass(b, data, instant) if type(d) ~= "number" then d = rng.range(1, 3)*0.1 end b:learnTalentType(tt, true) b:setTalentTypeMastery(tt, (b:getTalentTypeMastery(tt) or 1) + d) - ttypes[tt] = table.clone(d) + ttypes[tt] = {true, d} end end end @@ -2193,6 +2193,15 @@ function _M:applyRandomClass(b, data, instant) d.tt = tt table.insert(tt_choices, d) end + print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") + print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") + print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") + print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") + table.print(tt_choices) + print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") + print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") + print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") + print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") local fails = 0 local focus_trees = {} -- GitLab