From 20d1ef843c7ca4977a2b01c7c3db941d47be8144 Mon Sep 17 00:00:00 2001
From: Alexander Sedov <alex0player@gmail.com>
Date: Thu, 26 Feb 2015 19:45:52 +0300
Subject: [PATCH] Fixed healing inversion/shield of light feedback loop

---
 game/modules/tome/class/Actor.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua
index 71411f089a..0f4c23a555 100644
--- a/game/modules/tome/class/Actor.lua
+++ b/game/modules/tome/class/Actor.lua
@@ -2522,8 +2522,8 @@ function _M:onTakeHit(value, src, death_note)
 			-- Only calculate crit once per turn to avoid log spam
 			if not self.turn_procs.shield_of_light_heal then
 				local t = self:getTalentFromId(self.T_SHIELD_OF_LIGHT)
-				self.shield_of_light_heal = self:spellCrit(t.getHeal(self, t))
 				self.turn_procs.shield_of_light_heal = true
+				self.shield_of_light_heal = self:spellCrit(t.getHeal(self, t))
 			end
 
 			self:heal(self.shield_of_light_heal, tal)
-- 
GitLab