fixes a forcebolt runtime (#20501)

* fixes a forcebolt runtime

* Update code/modules/projectiles/projectile/force.dm

Co-authored-by: Farie82 <farie82@users.noreply.github.com>

---------

Co-authored-by: Farie82 <farie82@users.noreply.github.com>
This commit is contained in:
GDN
2023-03-13 17:18:47 -05:00
committed by GitHub
parent 272b7010e3
commit ed4dda70fb

View File

@@ -8,9 +8,8 @@
/obj/item/projectile/forcebolt/strong
name = "force bolt"
/obj/item/projectile/forcebolt/on_hit(atom/target, blocked = 0)
/obj/item/projectile/forcebolt/on_hit(atom/movable/target, blocked = 0)
. = ..()
if(blocked < 100)
var/obj/T = target
var/throwdir = get_dir(firer,target)
T.throw_at(get_edge_target_turf(target, throwdir),10,10)
if(istype(target) && blocked < 100)
var/throwdir = get_dir(firer, target)
target.throw_at(get_edge_target_turf(target, throwdir), 10, 10)