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

Block has no effect against self inflicted effects to prevent some problems for Demonologists

parent 09ba678a
No related branches found
No related tags found
No related merge requests found
......@@ -2024,6 +2024,8 @@ function _M:setupCommands()
print("===============")
end end,
[{"_g","ctrl"}] = function() if config.settings.cheat then
game.player:setEffect("EFF_STUNNED", 1, {apply_power=200})
do return end
local f, err = loadfile("/data/general/events/rat-lich.lua")
print(f, err)
setfenv(f, setmetatable({level=self.level, zone=self.zone}, {__index=_G}))
......
......@@ -2295,6 +2295,7 @@ newEffect{
on_gain = function(self, eff) return nil, nil end,
on_lose = function(self, eff) return nil, nil end,
do_block = function(type, dam, eff, self, src)
if self == src then return dam end
local dur_inc = 0
local crit_inc = 0
local nb = 1
......
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