mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
Prevent bullets from sometimes missing if blocked by another person diagonally (#66276)
This commit is contained in:
@@ -71,9 +71,8 @@
|
||||
new firing_effect_type(get_turf(src), firing_dir)
|
||||
|
||||
var/direct_target
|
||||
if(targloc == curloc)
|
||||
if(target) //if the target is right on our location we'll skip the travelling code in the proj's fire()
|
||||
direct_target = target
|
||||
if(target && curloc.Adjacent(targloc, target=targloc, mover=src)) //if the target is right on our location or adjacent (including diagonally if reachable) we'll skip the travelling code in the proj's fire()
|
||||
direct_target = target
|
||||
if(!direct_target)
|
||||
var/modifiers = params2list(params)
|
||||
loaded_projectile.preparePixelProjectile(target, fired_from, modifiers, spread)
|
||||
|
||||
Reference in New Issue
Block a user