1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-08 00:39:30 +02:00

rpg - fix bug

This commit is contained in:
Gerkiz 2021-02-10 21:31:26 +01:00
parent fcd68fd222
commit 9f15c0d3b5

View File

@ -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.