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

Merge branch 'fix-adventurer-lichform-heart' into 'master'

Update Lichform quest with on_grant to check for Celia complete.

Allows Adventurers in AoA to complete the Lichform quest if they kill Celia before gaining it. Checks if grave-necromancer quest is done and completes the 'heart' objective onTickEnd if so.

See merge request !764
parents 0ac3b486 4f9e9e25
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,14 @@ desc = function(self, who)
return table.concat(desc, "\n")
end
on_grant = function(self, who)
if who:isQuestStatus("grave-necromancer", engine.Quest.DONE) then
game:onTickEnd(function()
who:setQuestStatus(self.id, engine.Quest.COMPLETED, "heart")
end)
end
end
on_status_change = function(self, who, status, sub)
if self:isCompleted() then
local q = who:hasQuest("shertul-fortress")
......
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