mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 20:15:47 +01:00
Fix WIzard Ritual hard delete (#76638)
## About The Pull Request  So this action was created with the target = the wizard's body Wizard body gets deleted -> action gets deleted -> hard delete, bad ## Why It's Good For The Game Stop bricking wizards ## Changelog 🆑 Melbert fix: Fix hard deletes that brick all of a wizards spell when their body is delted /🆑
This commit is contained in:
@@ -77,6 +77,10 @@ GLOBAL_LIST_EMPTY(wizard_spellbook_purchases_by_key)
|
||||
if(allow_rename)
|
||||
rename_wizard()
|
||||
|
||||
/datum/antagonist/wizard/Destroy()
|
||||
QDEL_NULL(ritual)
|
||||
return ..()
|
||||
|
||||
/datum/antagonist/wizard/create_team(datum/team/wizard/new_team)
|
||||
if(!new_team)
|
||||
return
|
||||
@@ -98,7 +102,7 @@ GLOBAL_LIST_EMPTY(wizard_spellbook_purchases_by_key)
|
||||
|
||||
/// Initialises the grand ritual action for this mob
|
||||
/datum/antagonist/wizard/proc/assign_ritual()
|
||||
ritual = new(owner.current)
|
||||
ritual = new(src)
|
||||
RegisterSignal(ritual, COMSIG_GRAND_RITUAL_FINAL_COMPLETE, PROC_REF(on_ritual_complete))
|
||||
|
||||
/datum/antagonist/wizard/proc/send_to_lair()
|
||||
|
||||
Reference in New Issue
Block a user