Blindness will now interrupt aiming.

This commit is contained in:
Zuhayr
2016-02-07 17:38:47 +10:30
parent 5eaf31c767
commit c8c10e9741

View File

@@ -115,6 +115,8 @@ obj/aiming_overlay/proc/update_aiming_deferred()
if(!(aiming_with in owner) || (istype(owner, /mob/living/carbon/human) && (owner.l_hand != aiming_with && owner.r_hand != aiming_with)))
owner << "<span class='warning'>You must keep hold of your weapon!</span>"
else if(owner.eye_blind)
owner << "<span class='warning'>You are blind and cannot see your target!</span>"
else if(!aiming_at || !istype(aiming_at.loc, /turf))
owner << "<span class='warning'>You have lost sight of your target!</span>"
else if(owner.incapacitated() || owner.lying || owner.restrained())