We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fde0be commit 58a55a9Copy full SHA for 58a55a9
1 file changed
code/game/sound.dm
@@ -380,8 +380,10 @@ var/list/rummage_sound = list(\
380
if(dist > maxdistance)
381
if(!ishuman(M))
382
continue
383
- else if(!M.stats.getPerk(PERK_EAR_OF_QUICKSILVER))
384
- continue
+ else
+ var/mob/living/carbon/human/humanlistener = M
385
+ if(humanlistener.stats && !humanlistener.stats.getPerk(PERK_EAR_OF_QUICKSILVER))
386
+ continue
387
var/turf/T = get_turf(M)
388
389
if(T && (T.z == turf_source.z || zrange && abs(T.z - turf_source.z) <= zrange))
0 commit comments