end_of_eden/assets/scripts/artifacts/repulsion_stone.lua
2023-12-24 22:14:27 +01:00

15 lines
358 B
Lua

register_artifact("REPULSION_STONE", {
name = "Repulsion Stone",
description = "For each damage taken heal for 2",
price = 100,
order = 0,
callbacks = {
on_damage = function(ctx)
if ctx.target == ctx.owner then
heal(ctx.owner, ctx.owner, 2)
end
return nil
end
}
});