Fixes artificer spell being removed

This commit is contained in:
Artorp
2015-02-08 23:54:52 +01:00
parent 6e6b7deb8c
commit cc1f7a7301
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -792,7 +792,7 @@ datum/mind
if(src in ticker.mode.wizards)
ticker.mode.wizards -= src
special_role = null
current.spellremove(current, config.feature_object_spell_system? "object":"verb")
current.spellremove(current)
current.faction = list("Station")
current << "\red <FONT size = 3><B>You have been brainwashed! You are no longer a wizard!</B></FONT>"
log_admin("[key_name_admin(usr)] has de-wizard'ed [current].")
+1 -1
View File
@@ -192,7 +192,7 @@
var/area/wizard_station/A = locate()
if(usr in A.contents)
uses = max_uses
H.spellremove(usr)
H.spellremove(usr,0)
temp = "All spells have been removed. You may now memorize a new set of spells."
feedback_add_details("wizard_spell_learned","UM") //please do not change the abbreviation to keep data processing consistent. Add a unique id to any new spells
else
+2 -1
View File
@@ -273,8 +273,9 @@
//OTHER PROCS
//To batch-remove wizard spells. Linked to mind.dm.
/mob/proc/spellremove(var/mob/M as mob)
/mob/proc/spellremove(var/mob/M as mob, var/removeallspells=1)
for(var/obj/effect/proc_holder/spell/wizard/spell_to_remove in src.spell_list)
if (spell_to_remove.name == "Artificer" && !removeallspells) continue
del(spell_to_remove)
update_power_buttons()