Fixes liches losing spells
This commit is contained in:
committed by
CitadelStationBot
parent
aaa2a214cb
commit
6411e25110
+5
-1
@@ -211,7 +211,7 @@
|
||||
/datum/mind/proc/remove_wizard()
|
||||
if(src in SSticker.mode.wizards)
|
||||
SSticker.mode.wizards -= src
|
||||
current.spellremove(current)
|
||||
RemoveAllSpells()
|
||||
special_role = null
|
||||
remove_antag_equip()
|
||||
|
||||
@@ -1505,6 +1505,10 @@
|
||||
spell_list -= S
|
||||
qdel(S)
|
||||
|
||||
/datum/mind/proc/RemoveAllSpells()
|
||||
for(var/obj/effect/proc_holder/S in spell_list)
|
||||
RemoveSpell(S)
|
||||
|
||||
/datum/mind/proc/transfer_martial_arts(mob/living/new_character)
|
||||
if(!ishuman(new_character))
|
||||
return
|
||||
|
||||
@@ -245,15 +245,6 @@
|
||||
|
||||
//OTHER PROCS
|
||||
|
||||
//To batch-remove wizard spells. Linked to mind.dm.
|
||||
/mob/proc/spellremove(mob/M)
|
||||
if(!mind)
|
||||
return
|
||||
for(var/X in src.mind.spell_list)
|
||||
var/obj/effect/proc_holder/spell/spell_to_remove = X
|
||||
qdel(spell_to_remove)
|
||||
mind.spell_list -= spell_to_remove
|
||||
|
||||
//returns whether the mob is a wizard (or apprentice)
|
||||
/proc/iswizard(mob/living/M)
|
||||
return istype(M) && M.mind && SSticker && SSticker.mode && ((M.mind in SSticker.mode.wizards) || (M.mind in SSticker.mode.apprentices))
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
var/mob/dead/observe = M
|
||||
observe.reset_perspective(null)
|
||||
qdel(hud_used)
|
||||
if(mind && mind.current == src)
|
||||
spellremove(src)
|
||||
QDEL_LIST(viruses)
|
||||
for(var/cc in client_colours)
|
||||
qdel(cc)
|
||||
|
||||
Reference in New Issue
Block a user