Skip to content

Commit

Permalink
nip this in the bud now before it bites me
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsar-Salat committed Mar 26, 2024
1 parent 89a2f18 commit 02f22a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion code/__HELPERS/mobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ GLOBAL_LIST_EMPTY(species_list)
/proc/do_after(mob/user, delay = 3 SECONDS, atom/target, timed_action_flags = NONE, progress = TRUE, datum/callback/extra_checks)
if(!user)
return FALSE

if(!isnum(delay))
CRASH("do_after was passed a non-number delay: [delay || "null"].")
if(target && INTERACTING_WITH(user, target))
to_chat(user, "<span class='warning'>You're already interacting with [target]!</span>")
return
Expand Down
2 changes: 1 addition & 1 deletion code/modules/religion/rites.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
return FALSE
to_chat(user, "<span class='notice'>You begin to perform the rite of [name]...</span>")
if(!ritual_invocations)
if(do_after(user, target = user, delay = ritual_length))
if(do_after(user, ritual_length))
return TRUE
return FALSE
var/first_invoke = TRUE
Expand Down

0 comments on commit 02f22a7

Please sign in to comment.