Fixes flashbangs stunning people. (#9043)

This commit is contained in:
Matt Atlas
2020-06-06 20:58:31 +02:00
committed by GitHub
parent 09bae191e7
commit dd9216037b
2 changed files with 42 additions and 4 deletions
@@ -63,10 +63,7 @@
//Now applying sound
if((get_dist(M, T) <= 2 || src.loc == M.loc || src.loc == M))
if(ear_safety > 0)
M.Weaken(1)
else
M.Weaken(3)
if(!(ear_safety > 0))
if ((prob(14) || (M == src.loc && prob(70))))
M.ear_damage += rand(1, 10)
else