Skip to content
Snippets Groups Projects
Commit da0002ce authored by Otowa Kotori's avatar Otowa Kotori
Browse files

sanity check for actor.achievement_data

parent b8d330c2
No related branches found
No related tags found
1 merge request!681Misc 1.73 fixes
......@@ -92,7 +92,7 @@ newBirthDescriptor{
if (actor:hasQuest("anti-antimagic") and actor:hasQuest("anti-antimagic"):isStatus(engine.Quest.DONE)) then return true end
-- Killed an escort yourself
local id = world:getCurrentAchievementDifficultyId(game, "ESCORT_KILL")
if actor.achievement_data[id] and actor.achievement_data[id].nb > 0 then return true end
if actor.achievement_data and actor.achievement_data[id] and actor.achievement_data[id].nb > 0 then return true end
-- Lumberjack massacre
if (actor:hasQuest("lumberjack-cursed") and (actor:hasQuest("lumberjack-cursed").lumberjacks_died or 0) >= 20) then return true end
-- Slave arena
......
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