mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 08:01:22 +00:00
validation plane hp bellow 0
This commit is contained in:
parent
a6e40eb557
commit
27e140ae6d
1 changed files with 1 additions and 0 deletions
|
@ -701,6 +701,7 @@ local function damage_vehicle(self, toolcaps, ttime, damage)
|
||||||
end
|
end
|
||||||
damage = damage + value / 10
|
damage = damage + value / 10
|
||||||
self.hp_max = self.hp_max - damage
|
self.hp_max = self.hp_max - damage
|
||||||
|
if self.hp_max < 0 then self.hp_max = 0 end
|
||||||
airutils.setText(self, self._vehicle_name)
|
airutils.setText(self, self._vehicle_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue