From f029d55d21657108b9318bbfcee5dd67fd2bfaa4 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Fri, 7 Dec 2012 23:35:18 +0000
Subject: [PATCH] Draconic Will does not prevent status effects of type "other"

git-svn-id: http://svn.net-core.org/repos/t-engine4@5992 51575b47-30f0-44d4-a5cc-537603b46e54
---
 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 52656ecacf..db3bd817e5 100644
--- a/game/modules/tome/class/Actor.lua
+++ b/game/modules/tome/class/Actor.lua
@@ -4295,7 +4295,7 @@ function _M:on_set_temporary_effect(eff_id, e, p)
 		local e = self.tempeffect_def[self.EFF_HAUNTED]
 		e.on_setFearEffect(self, e)
 	end
-	if e.status == "detrimental" and self:attr("negative_status_effect_immune") then
+	if e.status == "detrimental" and e.type ~= "other" and self:attr("negative_status_effect_immune") then
 		p.dur = 0
 	end
 	if e.status == "detrimental" and e.type == "mental" and self:attr("mental_negative_status_effect_immune") and not e.subtype["cross tier"] then
-- 
GitLab