Skip to content
Snippets Groups Projects
Commit c3e2c397 authored by DarkGod's avatar DarkGod
Browse files

Fixed a rare chronomancy bug

parent eeb42c57
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -310,8 +310,8 @@ makeParadoxClone = function(self, target, duration, alt_nodes)
alt_nodes._last_mo = false
alt_nodes.add_mos = false
alt_nodes.add_displays = false
alt_nodes.fov = false
alt_nodes.distance_map = false
alt_nodes.fov = {actors={}, actors_dist={}}
alt_nodes.distance_map = {}
-- Don't copy some additional fields for short-lived clones
if duration == 0 then
......
......@@ -600,7 +600,7 @@ newTalent{
local count, t = 0
for tid, _ in pairs(aitarget.talents) do
t = aitarget.talents_def[tid]
if type(t.tactical) == "table" and type(t.tactical.disable) == "table" and (t.tactical.disable.stun or t.tactical.disable.pin) then
if t and type(t.tactical) == "table" and type(t.tactical.disable) == "table" and (t.tactical.disable.stun or t.tactical.disable.pin) then
count = count + 1
if count > 1 then break end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment