From e127bd8eb92265af66e1e238aedac144851a261f Mon Sep 17 00:00:00 2001 From: Alexander Sedov <alex0player@gmail.com> Date: Mon, 15 Dec 2014 07:41:50 +0300 Subject: [PATCH] Only remove effects with type "other" if asked for. --- game/modules/tome/class/Actor.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua index dfa22f8efb..a6dbe4ec44 100644 --- a/game/modules/tome/class/Actor.lua +++ b/game/modules/tome/class/Actor.lua @@ -5524,7 +5524,9 @@ function _M:removeEffectsFilter(t, nb, silent, force) if t(e) then effs[#effs+1] = eff_id end else local test = true + local include_other = (t.type and t.type=="other") or (t.types and t.types.other) test = (not t.ignore_crosstier or not e.subtype["cross tier"]) + test = test and (include_other or e.type ~= "other") -- only remove other explicitly test = test and (not t.type or t.type == e.type) test = test and (not t.types or t.types[e.type]) if t.subtype then -- GitLab