From 12d50c62dcba1213fc13d48e26a2d6764eda20aa Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Fri, 13 May 2011 23:34:38 +0000
Subject: [PATCH] Being stunned now also reduces healing by 50%

git-svn-id: http://svn.net-core.org/repos/t-engine4@3358 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/class/Actor.lua        | 5 +++++
 game/modules/tome/data/timed_effects.lua | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua
index f6d46c1af7..84635ca6dd 100644
--- a/game/modules/tome/class/Actor.lua
+++ b/game/modules/tome/class/Actor.lua
@@ -841,6 +841,11 @@ function _M:onHeal(value, src)
 		return 0
 	end
 	value = value * util.bound((self.healing_factor or 1), 0, 2.5)
+
+	if src:attr("stunned") then
+		value = value / 2
+	end
+
 	print("[HEALING]", self.uid, self.name, "for", value)
 	return value
 end
diff --git a/game/modules/tome/data/timed_effects.lua b/game/modules/tome/data/timed_effects.lua
index fb7caeff1a..5b9fd14d8b 100644
--- a/game/modules/tome/data/timed_effects.lua
+++ b/game/modules/tome/data/timed_effects.lua
@@ -395,7 +395,7 @@ newEffect{
 newEffect{
 	name = "STUNNED",
 	desc = "Stunned",
-	long_desc = function(self, eff) return ("The target is stunned, reducing damage by 70%%, putting random talents on cooldown and reducing movement speed by 50%%. While stunned talents do not cooldown."):format() end,
+	long_desc = function(self, eff) return ("The target is stunned, reducing damage by 70%%, healing received by 50%, putting random talents on cooldown and reducing movement speed by 50%%. While stunned talents do not cooldown."):format() end,
 	type = "physical",
 	status = "detrimental",
 	parameters = {},
-- 
GitLab