mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
Del The World: Unit testing for hard deletes (#59612)
Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
co-authored by
SteelSlayer
parent
0304206af3
commit
cd576ab519
@@ -89,6 +89,9 @@
|
||||
|
||||
/obj/item/phylactery/Initialize(mapload, datum/mind/newmind)
|
||||
. = ..()
|
||||
if(!mind)
|
||||
stack_trace("A phylactery was created with no target mind")
|
||||
return INITIALIZE_HINT_QDEL
|
||||
mind = newmind
|
||||
name = "phylactery of [mind.name]"
|
||||
|
||||
|
||||
@@ -145,7 +145,8 @@
|
||||
source = _source
|
||||
shape = loc
|
||||
if(!istype(shape))
|
||||
CRASH("shapeshift holder created outside mob/living")
|
||||
stack_trace("shapeshift holder created outside mob/living")
|
||||
return INITIALIZE_HINT_QDEL
|
||||
stored = caster
|
||||
if(stored.mind)
|
||||
stored.mind.transfer_to(shape)
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
if(action?.owner)
|
||||
var/mob/guy_who_needs_to_know = action.owner
|
||||
to_chat(guy_who_needs_to_know, span_notice("The power of the spell dissipates from your hand."))
|
||||
..()
|
||||
return ..()
|
||||
|
||||
/obj/effect/proc_holder/spell/targeted/touch/proc/remove_hand(recharge = FALSE)
|
||||
QDEL_NULL(attached_hand)
|
||||
|
||||
Reference in New Issue
Block a user