Fixes pointblank shots being able to miss. (#14486)

This commit is contained in:
Matt Atlas
2022-07-26 16:37:59 +02:00
committed by GitHub
parent e89cb728cb
commit fac12639cd
4 changed files with 46 additions and 3 deletions
+1 -1
View File
@@ -193,7 +193,7 @@
//roll to-hit
miss_modifier = max(15*(distance-1) - round(25*accuracy) + miss_modifier, 0)
hit_zone = get_zone_with_miss_chance(def_zone, target_mob, miss_modifier, ranged_attack=(distance > 1 || original != target_mob)) //if the projectile hits a target we weren't originally aiming at then retain the chance to miss
hit_zone = get_zone_with_miss_chance(def_zone, target_mob, miss_modifier, (distance > 1 || original != target_mob), point_blank) //if the projectile hits a target we weren't originally aiming at then retain the chance to miss
var/result = PROJECTILE_FORCE_MISS
if(hit_zone)