mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +01:00
[snow] Don't hurt gauges' hp bars
This commit is contained in:
parent
45d4f97dba
commit
9e31c3c23c
@ -118,7 +118,8 @@ function snow_snowball_ENTITY.on_step(self, dtime)
|
|||||||
|
|
||||||
if self.timer > 0.15 then
|
if self.timer > 0.15 then
|
||||||
for i, v in pairs(minetest.get_objects_inside_radius(self.object:getpos(), 1)) do
|
for i, v in pairs(minetest.get_objects_inside_radius(self.object:getpos(), 1)) do
|
||||||
if v ~= self.object and v:get_entity_name() ~= "__builtin:item" then
|
if v ~= self.object and v:get_entity_name() ~= "__builtin:item"
|
||||||
|
and v:get_entity_name() ~= "gauges:hp_bar" then
|
||||||
v:punch(minetest.get_player_by_name(self.thrower), 1.0,{full_punch_interval=1.0, damage_groups = {fleshy=1} })
|
v:punch(minetest.get_player_by_name(self.thrower), 1.0,{full_punch_interval=1.0, damage_groups = {fleshy=1} })
|
||||||
minetest.add_item(self.object:getpos(), "default:snow")
|
minetest.add_item(self.object:getpos(), "default:snow")
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
|
Loading…
Reference in New Issue
Block a user