Skip to content
Snippets Groups Projects
Commit 4152db66 authored by dg's avatar dg
Browse files

Grand Corruptor correctly triggers the quest even in the fearscape if spawned...

Grand Corruptor correctly triggers the quest even in the fearscape if spawned in the mark of the spellblaze


git-svn-id: http://svn.net-core.org/repos/t-engine4@4749 51575b47-30f0-44d4-a5cc-537603b46e54
parent e5fe37ef
No related branches found
No related tags found
No related merge requests found
......@@ -69,8 +69,13 @@ newEntity{ base = "BASE_NPC_ELVEN_CASTER", define_as = "GRAND_CORRUPTOR",
ai_tactic = resolvers.tactic"ranged",
resolvers.inscriptions(2, "rune"),
on_added_to_level = function(self)
self.on_added_to_level = nil
-- Remove the quest starter when not spawned in the mark of the spellblaze
if not game.zone.is_mark_spellblaze then self.on_takehit = nil end
end,
on_takehit = function(self, value, src)
if not game.zone.is_mark_spellblaze then return value end
if not self.chatted and (self.life - value) < self.max_life * 0.4 then
self.chatted = true
-- Check for magical knowledge
......
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