0
0
Fork 0

Add set_on_fire to do_env_damage

This commit is contained in:
Lizzy Fleckenstein 2021-04-29 12:28:34 +02:00
parent 8b64022bfd
commit fed1410b7f
1 changed files with 4 additions and 0 deletions

View File

@ -1646,6 +1646,8 @@ local do_env_damage = function(self)
self.health = self.health - self.lava_damage
mcl_burning.set_on_fire(self.object, 15)
effect(pos, 5, "fire_basic_flame.png", nil, nil, 1, nil)
if check_for_death(self, "lava", {type = "environment",
@ -1662,6 +1664,8 @@ local do_env_damage = function(self)
self.health = self.health - self.fire_damage
mcl_burning.set_on_fire(self.object, 8)
effect(pos, 5, "fire_basic_flame.png", nil, nil, 1, nil)
if check_for_death(self, "fire", {type = "environment",