Fixes null spell sound plays. (#13628)

This commit is contained in:
sood
2017-01-24 20:01:52 -08:00
committed by clusterfack
parent 1882c628a0
commit 77156fb03e

View File

@@ -23,7 +23,8 @@ How they spawn stuff is decided by behaviour vars, which are explained below
//should have format of list("emagged" = 1,"name" = "Wizard's Justicebot"), for example
/spell/aoe_turf/conjure/cast(list/targets, mob/user)
playsound(get_turf(user), cast_sound, 50, 1)
if(!isnull(cast_sound))
playsound(get_turf(user), cast_sound, 50, 1)
var/placed_successfully = 0
for(var/i=1,i <= summon_amt,i++)
@@ -105,4 +106,4 @@ How they spawn stuff is decided by behaviour vars, which are explained below
if(!choice)
return 1
summon_type = list(full_list[choice])
return ..()
return ..()