Limmir cries for help too early

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Hachem_Muche
Uruivellas
Posts: 744
Joined: Thu Nov 18, 2010 6:42 pm

Limmir cries for help too early

#1 Post 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!")
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

Post Reply