Fix first poison activation not counting damage.

This commit is contained in:
GreenComfyTea
2022-07-25 15:58:36 +03:00
parent 7a89f66d23
commit a2e7c6b78d
6 changed files with 42 additions and 122 deletions

View File

@@ -50,7 +50,7 @@ function ailment_hook.poison_proc(poison_param)
monster = small_monster.get_monster(enemy);
end
monster.ailments[ailments.poison_id].cached_buildup_share = monster.ailments[ailments.poison_id].buildup_share;
monster.ailments[ailments.poison_id].cached_buildup_share = table_helpers.deep_copy(monster.ailments[ailments.poison_id].buildup_share);
ailments.clear_ailment_contribution(monster, ailments.poison_id);
end