From 246cabc33bbd2fc4675b146c806abfab386cbb0d Mon Sep 17 00:00:00 2001
From: Eric Wykoff <ericwykoff@yahoo.com>
Date: Thu, 19 Feb 2015 12:12:34 -0600
Subject: [PATCH] fix

---
 game/modules/tome/data/timed_effects/other.lua | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/game/modules/tome/data/timed_effects/other.lua b/game/modules/tome/data/timed_effects/other.lua
index 94f4c6a60d..fd82bbabbd 100644
--- a/game/modules/tome/data/timed_effects/other.lua
+++ b/game/modules/tome/data/timed_effects/other.lua
@@ -2557,6 +2557,8 @@ newEffect{
 		return {dam=dam}
 	end,
 	callbackOnHit = function(self, eff, cb, src)
+		if cb.value <= 0 then return cb.value end
+		
 		local clones = {}
 		-- Find our clones
 		for i = 1, #eff.targets do
@@ -2574,7 +2576,7 @@ newEffect{
 			for i = 1, #clones do
 				local target = clones[i]
 				if target ~= self then
-					target:takeHit(cb.value, self)
+					target:takeHit(cb.value, src)
 					game:delayedLogDamage(src or self, self, 0, ("#STEEL_BLUE#(%d shared)#LAST#"):format(cb.value), nil)
 				end
 			end
-- 
GitLab