Nullblades and proto-kinetic crushers use the check_behind() proc rather than get direction themselves. (#87287)

## About The Pull Request

What it says in the title.

## Why It's Good For The Game

This is functionally identical, but a little more robust about what
counts as 'behind'.

## Changelog
🆑
code: Nullblades and proto-kinetic crushers use the new proc for
checking valid directions to backstab.
/🆑
This commit is contained in:
necromanceranne
2024-10-20 21:18:43 +11:00
committed by GitHub
parent 90f9500be0
commit f7fd03fc25
2 changed files with 5 additions and 15 deletions
@@ -122,10 +122,9 @@
new /obj/effect/temp_visual/kinetic_blast(get_turf(target))
var/backstabbed = FALSE
var/combined_damage = detonation_damage
var/backstab_dir = get_dir(user, target)
var/def_check = target.getarmor(type = BOMB)
// Backstab bonus
if((user.dir & backstab_dir) && (target.dir & backstab_dir) || boosted_mark)
if(check_behind(user, target) || boosted_mark)
backstabbed = TRUE
combined_damage += backstab_bonus
playsound(user, 'sound/items/weapons/kinetic_accel.ogg', 100, TRUE) //Seriously who spelled it wrong