fixes flashes being stupid on emp.

now, if i understand this code right, the old code would flash in the viewers(3) of ***FUCKING USR*** on emp, meaning the person to trigger the emp, not the person holding the flash.

The documents say that if the second arg is null, ***it defaults to usr.***

I have it doing loc because this way it flashes from inside a pocket, but not a backpack or other container.
This commit is contained in:
Kyle Spier-Swenson
2015-12-24 06:25:36 -08:00
parent 6b4000ff66
commit 36dd0889bf

View File

@@ -132,9 +132,9 @@
/obj/item/device/assembly/flash/emp_act(severity)
if(!try_use_flash())
if(!try_use_flash() || !loc)
return 0
for(var/mob/living/carbon/M in viewers(3, null))
for(var/mob/living/carbon/M in viewers(3, loc))
flash_carbon(M, null, 10, 0)
burn_out()
..()