Skip to content
Snippets Groups Projects
Commit 6cd965eb authored by DarkGod's avatar DarkGod
Browse files

Fixed being able to dispel your own debuff during Golden Age of Necromancy

parent 48156e8e
No related branches found
No related tags found
No related merge requests found
...@@ -7212,8 +7212,6 @@ end ...@@ -7212,8 +7212,6 @@ end
-- @param src who is doing the dispelling -- @param src who is doing the dispelling
-- @param allow_immunity If true will check for canBe("dispel_XXX"), defaults to true -- @param allow_immunity If true will check for canBe("dispel_XXX"), defaults to true
function _M:dispel(effid_or_tid, src, allow_immunity, params) function _M:dispel(effid_or_tid, src, allow_immunity, params)
if allow_immunity and self:attr("invulnerable") then return end
if not params then params = {} end if not params then params = {} end
if params.silent == nil then params.silent = false end if params.silent == nil then params.silent = false end
if params.force == nil then params.force = false end if params.force == nil then params.force = false end
...@@ -7224,6 +7222,8 @@ function _M:dispel(effid_or_tid, src, allow_immunity, params) ...@@ -7224,6 +7222,8 @@ function _M:dispel(effid_or_tid, src, allow_immunity, params)
-- Dont resist yourself! -- Dont resist yourself!
if src == self then allow_immunity = false end if src == self then allow_immunity = false end
if allow_immunity and self:attr("invulnerable") then return end
-- Effect -- Effect
if effid_or_tid:find("^EFF_") then if effid_or_tid:find("^EFF_") then
local eff = self:getEffectFromId(effid_or_tid) local eff = self:getEffectFromId(effid_or_tid)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment