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:
parent
fcd68fd222
commit
9f15c0d3b5
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user