Fix Total Damage registering too large values

This commit is contained in:
GreenComfyTea
2023-08-10 16:48:41 +03:00
parent 3e66b920ef
commit 1c20591b33

View File

@@ -541,6 +541,10 @@ function this.update_poison(monster, poison_param)
error_handler.report("ailments.update_poison", "Failed to access Data: is_damage");
return;
end
if not is_damage then
return;
end
local poison_damage = poison_damage_field:get_data(poison_param);
if poison_damage == nil then