- Still fixing merge conflicts

- Giving spells to mobs without minds should work
This commit is contained in:
Perakp
2014-02-14 21:32:16 +02:00
parent 9a27f7d39b
commit 7e324bb17c
5 changed files with 12 additions and 6 deletions
+5 -2
View File
@@ -466,9 +466,12 @@ var/list/admin_verbs_hideable = list(
set name = "Give Spell"
set desc = "Gives a spell to a mob."
var/obj/effect/proc_holder/spell/S = input("Choose the spell to give to that guy", "ABRAKADABRA") as null|anything in spells
if(!S || !T.mind)
if(!S)
return
T.mind.spell_list += new S
if(T.mind)
T.mind.spell_list += new S
else
T.mob_spell_list += new S
feedback_add_details("admin_verb","GS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
log_admin("[key_name(usr)] gave [key_name(T)] the spell [S].")
message_admins("\blue [key_name_admin(usr)] gave [key_name(T)] the spell [S].", 1)