Page 1 of 1

Limmir cries for help too early

Posted: Sat Mar 23, 2013 3:15 am
by Hachem_Muche
You get a message that Limmir is under attack when he crosses the poison water right after you summon him (before the event actually starts).

Simple fix:

Code: Select all

Index: game/modules/tome/data/zones/valley-moon/npcs.lua
===================================================================
--- game/modules/tome/data/zones/valley-moon/npcs.lua	(revision 6589)
+++ game/modules/tome/data/zones/valley-moon/npcs.lua	(working copy)
@@ -112,7 +112,7 @@
 	end,
 
 	on_takehit = function(self, value, who)
-		if self.last_took_hit_cry and game.turn < self.last_took_hit_cry + 100 and (not who or who.type ~= "demon") then return value end
+		if self.last_took_hit_cry and game.turn < self.last_took_hit_cry + 100 and (not who or who.type ~= "demon") or not game.level.turn_counter then return value end
 		self.last_took_hit_cry = game.turn
 
 		game.bignews:say(90, "#VIOLET#Limmir is attacked! Defend him!")