mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
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:
@@ -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()
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user