Creeping darkness damage error

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

Creeping darkness damage error

#1 Post by Hachem_Muche »

A couple of (cut and paste?) errors causes creeping darkness to generate errors when it tries to do damage:

Fix:

Code: Select all

Index: game/modules/tome/data/talents/cursed/darkness.lua
===================================================================
--- game/modules/tome/data/talents/cursed/darkness.lua	(revision 6365)
+++ game/modules/tome/data/talents/cursed/darkness.lua	(working copy)
@@ -223,7 +223,8 @@
 				local actor = game.level.map(self.x, self.y, Map.ACTOR)
 				if actor and actor ~= self.summoner and (not actor.summoner or actor.summoner ~= self.summoner) then
 					self.projecting = true -- simplest way to indicate that this damage should not be amplified by the in creeping dark bonus
-					self.summoner:project({type="hit", range=self:getTalentRange(t), talent=self:getTalentFromId(self.T_CREEPING_DARKNESS)}, actor.x, actor.y, engine.DamageType.DARKNESS, self.damage)
+					local t = self.summoner:getTalentFromId(self.summoner.T_CREEPING_DARKNESS)
+					self.summoner:project({type="hit", range=self.summoner:getTalentRange(t), talent=t}, actor.x, actor.y, engine.DamageType.DARKNESS, self.damage)	
 					self.projecting = false
 				end
 
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

Post Reply