mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Fix ghosts fucking with flashers.
This commit is contained in:
@@ -12,6 +12,8 @@
|
|||||||
var/strength = 10 //How weakened targets are when flashed.
|
var/strength = 10 //How weakened targets are when flashed.
|
||||||
var/base_state = "mflash"
|
var/base_state = "mflash"
|
||||||
anchored = 1
|
anchored = 1
|
||||||
|
ghost_read=0
|
||||||
|
ghost_write=0
|
||||||
|
|
||||||
/obj/machinery/flasher/portable //Portable version of the flasher. Only flashes when anchored
|
/obj/machinery/flasher/portable //Portable version of the flasher. Only flashes when anchored
|
||||||
name = "portable flasher"
|
name = "portable flasher"
|
||||||
@@ -67,6 +69,7 @@
|
|||||||
use_power(1000)
|
use_power(1000)
|
||||||
|
|
||||||
for (var/mob/O in viewers(src, null))
|
for (var/mob/O in viewers(src, null))
|
||||||
|
if(isobserver(O)) continue
|
||||||
if (get_dist(src, O) > src.range)
|
if (get_dist(src, O) > src.range)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user