Fixed flashing species with light sensitive eyes causing stun while not using night vision (#11582)

This commit is contained in:
Alberyk
2021-03-31 12:50:05 -03:00
committed by GitHub
parent 0bf77191b8
commit 4a3784dd34
2 changed files with 11 additions and 4 deletions
@@ -61,10 +61,11 @@
if(!owner)
return
to_chat(owner, SPAN_WARNING("Your eyes burn with the intense light of the flash!"))
owner.Weaken(5)
disable_night_vision()
owner.last_special = world.time + 100
if(night_vision)
to_chat(owner, SPAN_WARNING("Your eyes burn with the intense light of the flash!"))
owner.Weaken(5)
disable_night_vision()
owner.last_special = world.time + 100
/obj/item/organ/internal/eyes/night/proc/can_change_invisible()
if(owner.client && ((owner.client.view != world.view) || (owner.client.pixel_x != 0) || (owner.client.pixel_y != 0))) //using binoculars