you can create a function onNPCHarm in your luna.lua script:
Note: I'm not sure on BOMB_ID, and I don't know if it needs to check HARM_TYPE_NPC, HARM_TYPE_PROJECTILE_USED or HARM_TYPE_HELD. Substitute those to find the right combination and it ought to work.
Code: Select all
local BOMB_ID = *insert the ID of the Bomb NPC here. IDK which of the 5 bobomb npcs you are referring to
function onNPCHarm(eventToken, harmedNPC, killReason, culpritOrNil)
if harmedNPC.id == BOMB_ID and killReason == HARM_TYPE_PROJECTILE_USED then
eventToken.cancelled = true -- prevent the NPC from taking damage.
end
end