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

Added a hook "Winner"

parent ea1d499b
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -127,6 +127,7 @@ function win(self, how)
local p = game:getPlayer(true)
p:inventoryApplyAll(function(inven, item, o) o:check("on_win") end)
self:triggerHook{"Winner", how=how, kind="sorcerers"}
local aeryn = game.level:findEntity{define_as="HIGH_SUN_PALADIN_AERYN"}
if aeryn and not aeryn.dead then world:gainAchievement("WIN_AERYN_SURVIVE", game.player) 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