Skip to content

Commit

Permalink
Fix negative eye_blind leading to permanent blindness (#9977)
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy authored Oct 7, 2023
1 parent 278dac2 commit b8f90df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/mob/status_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/
/mob/proc/adjust_blindness(amount)
var/old_eye_blind = eye_blind
eye_blind += amount
eye_blind = max(eye_blind + amount, 0)
if(!old_eye_blind || !eye_blind && !HAS_TRAIT(src, TRAIT_BLIND))
update_blindness()

Expand Down

0 comments on commit b8f90df

Please sign in to comment.