mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
Fixes the issues with deconstructing and tool do_afters (#13177)
Co-authored-by: SteelSlayer <SteelSlayer@users.noreply.github.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
var/datum/callback/tool_check = CALLBACK(src, .proc/tool_check_callback, user, target, amount, extra_checks)
|
||||
|
||||
if(ismob(target))
|
||||
if(!do_mob(user, target, delay, extra_checks = list(tool_check)))
|
||||
if(!do_mob(user, target, delay, extra_checks = tool_check))
|
||||
return
|
||||
|
||||
else
|
||||
@@ -57,4 +57,4 @@
|
||||
|
||||
// Used in a callback that is passed by use_tool into do_after call. Do not override, do not call manually.
|
||||
/obj/item/proc/tool_check_callback(mob/living/user, atom/target, amount, datum/callback/extra_checks)
|
||||
return tool_use_check(user, amount) && (!extra_checks || extra_checks.Invoke())
|
||||
return tool_use_check(user, amount) && (extra_checks && !extra_checks.Invoke())
|
||||
|
||||
Reference in New Issue
Block a user