Fixed putrid blob not working when colliding with caster
This commit is contained in:
parent
3624eaeb2b
commit
aff8f93340
@ -195,6 +195,9 @@ function blob:on_step(dtime, moveresult)
|
|||||||
elseif collided_with_object and minetest.is_player(moveresult.collisions[1].object) then
|
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
|
if moveresult.collisions[1].object:get_player_name() ~= self.pl_name then
|
||||||
fbrawl.hit_player(player, moveresult.collisions[1].object, blob.damage)
|
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
|
end
|
||||||
self:explode()
|
self:explode()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user