From 456d6c2feaf11494c417f74cb8c2fbb4a4f5f2ed Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Tue, 30 Dec 2014 17:00:07 +0100
Subject: [PATCH] ogric wrath works against many more things

---
 game/modules/tome/data/damage_types.lua | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/game/modules/tome/data/damage_types.lua b/game/modules/tome/data/damage_types.lua
index dbd50099a7..ac21ebdb00 100644
--- a/game/modules/tome/data/damage_types.lua
+++ b/game/modules/tome/data/damage_types.lua
@@ -286,6 +286,7 @@ setDefaultProjector(function(src, x, y, type, dam, tmp, no_martyr)
 			print("[PROJECTOR] after self-resists dam", dam)
 		end
 		
+		local initial_dam = dam
 		lastdam = dam
 		-- Static reduce damage for psionic kinetic shield
 		if target.isTalentActive and target:isTalentActive(target.T_KINETIC_SHIELD) then
@@ -400,8 +401,6 @@ setDefaultProjector(function(src, x, y, type, dam, tmp, no_martyr)
 
 		print("[PROJECTOR] final dam after static checks", dam)
 
-		local initial_dam = dam
-
 		local hd = {"DamageProjector:final", src=src, x=x, y=y, type=type, dam=dam, tmp=tmp, no_martyr=no_martyr}
 		if src:triggerHook(hd) then dam = hd.dam if hd.stopped then return hd.stopped end end
 		if target.fireTalentCheck then
-- 
GitLab