Skip to content
Snippets Groups Projects
Commit 2aaf2936 authored by dg's avatar dg
Browse files

Killing the elementals in Derth will now currently trigegr the quest even if...

Killing the elementals in Derth will now currently trigegr the quest even if killed by a summon controlled pet


git-svn-id: http://svn.net-core.org/repos/t-engine4@2111 51575b47-30f0-44d4-a5cc-537603b46e54
parent d4b08adc
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ on_grant = function(self, who)
if tries < 100 then
m.quest = true
m.on_die = function(self)
game.player:hasQuest("lightning-overload"):kill_one()
game.player:resolveSource():hasQuest("lightning-overload"):kill_one()
end
game.zone:addEntity(game.level, m, "actor", x, y)
self.max_count = self.max_count + 1
......@@ -79,7 +79,7 @@ on_status_change = function(self, who, status, sub)
if self:isCompleted() then
who:setQuestStatus(self.id, engine.Quest.DONE)
game:setAllowedBuild("mage_tempest", true)
world:gainAchievement("EYE_OF_THE_STORM", game.player)
world:gainAchievement("EYE_OF_THE_STORM", game.player:resolveSource())
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