mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
- Still fixing merge conflicts
- Giving spells to mobs without minds should work
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user