diff --git a/game/modules/tome/class/Game.lua b/game/modules/tome/class/Game.lua index b3e1510ee85072de8659845e9a3fe580ded26146..cc1e22bbd87465b3e3d859111afec9d681339b49 100644 --- a/game/modules/tome/class/Game.lua +++ b/game/modules/tome/class/Game.lua @@ -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})) diff --git a/game/modules/tome/data/timed_effects/physical.lua b/game/modules/tome/data/timed_effects/physical.lua index bf23d3ddbabbdc268c981148df3eef5bb2c9727a..7925aacb8977b496ac5ea41781a1fcace1b0e3f7 100644 --- a/game/modules/tome/data/timed_effects/physical.lua +++ b/game/modules/tome/data/timed_effects/physical.lua @@ -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