From 9f15c0d3b5cac493e289f8a8fda2cf15dfbf00dd Mon Sep 17 00:00:00 2001 From: Gerkiz Date: Wed, 10 Feb 2021 21:31:26 +0100 Subject: [PATCH] rpg - fix bug --- modules/rpg/main.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/rpg/main.lua b/modules/rpg/main.lua index 8f0d6f54..0b4e6f3b 100644 --- a/modules/rpg/main.lua +++ b/modules/rpg/main.lua @@ -557,6 +557,14 @@ local function on_entity_damaged(event) return end + local item = p.cursor_stack + + if item and item.valid_for_read then + if item.name == 'discharge-defense-remote' then + return + end + end + Functions.reward_mana(cause.player, 2) --Grant the player life-on-hit.