Commit f6b0b4cf828f7b68a7bacfb5b412e19c19694dc4

Authored by DarkGod
2 parents 0ac3b486 4f9e9e25

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
... ... @@ -48,6 +48,14 @@ desc = function(self, who)
48 48 return table.concat(desc, "\n")
49 49 end
50 50
  51 +on_grant = function(self, who)
  52 + if who:isQuestStatus("grave-necromancer", engine.Quest.DONE) then
  53 + game:onTickEnd(function()
  54 + who:setQuestStatus(self.id, engine.Quest.COMPLETED, "heart")
  55 + end)
  56 + end
  57 +end
  58 +
51 59 on_status_change = function(self, who, status, sub)
52 60 if self:isCompleted() then
53 61 local q = who:hasQuest("shertul-fortress")
... ...