mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-10-29 04:24:07 -07:00
Hooks wrapped with pcalls.
This commit is contained in:
1 parent
d9f5799fd2
commit
de65b1500c
3 files changed
+9
-6
No files matched your search
@@ -18,7 +18,7 @@ local get_elemental_damage_method = enemy_calc_damage_info_type_def:get_method("
|
||||
local get_condition_damage_method = enemy_calc_damage_info_type_def:get_method("get_ConditionDamage");
|
||||
|
||||
sdk.hook(enemy_character_base_after_calc_damage_damage_side, function(args)
|
||||
damage_hook.update_damage(args);
|
||||
pcall(damage_hook.update_damage, args);
|
||||
end, function(retval)
|
||||
return retval;
|
||||
end);
|
||||
|
||||
Reference in new issue
Block a user