Fixed putrid blob not working when colliding with caster

This commit is contained in:
Giov4 2024-07-10 23:37:20 +02:00
parent 3624eaeb2b
commit aff8f93340

View File

@ -195,6 +195,9 @@ function blob:on_step(dtime, moveresult)
elseif collided_with_object and minetest.is_player(moveresult.collisions[1].object) then
if moveresult.collisions[1].object:get_player_name() ~= self.pl_name then
fbrawl.hit_player(player, moveresult.collisions[1].object, blob.damage)
else
local feet_pos = vector.subtract(player:get_pos(), 0)
minetest.add_entity(feet_pos, "fantasy_brawl:acid_puddle", minetest.serialize({self.pl_name, self.pool_size, self.pool_duration}))
end
self:explode()