Fixes wizard end-round spell listing

Wizard spells are now stored in their mind, not in their mob
This commit is contained in:
Krausus
2015-06-10 10:17:08 -04:00
parent 7ac19cd320
commit 31b4fc9082
+3 -3
View File
@@ -257,12 +257,12 @@
else
text += "<br><font color='red'><B>The wizard has failed!</B></font>"
feedback_add_details("wizard_success","FAIL")
if(wizard.current && wizard.current.spell_list)
if(wizard.spell_list)
text += "<br><B>[wizard.name] used the following spells: </B>"
var/i = 1
for(var/obj/effect/proc_holder/spell/wizard/S in wizard.current.spell_list)
for(var/obj/effect/proc_holder/spell/wizard/S in wizard.spell_list)
text += "[S.name]"
if(wizard.current.spell_list.len > i)
if(wizard.spell_list.len > i)
text += ", "
i++
text += "<br>"