mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 21:12:24 +01:00
Fixed the gauss highex projectile from runtiming (#19283)
Fixed the gauss highex projectile from runtiming when hitting a wall (or non movable atoms). Removed a sleep and turned it into an async.
This commit is contained in:
@@ -474,11 +474,11 @@
|
||||
|
||||
/obj/item/projectile/bullet/gauss/highex/on_hit(var/atom/target, var/blocked = 0)
|
||||
explosion(target, -1, 0, 2)
|
||||
sleep(0)
|
||||
var/obj/T = target
|
||||
var/throwdir = get_dir(firer,target)
|
||||
T.throw_at(get_edge_target_turf(target, throwdir),3,3)
|
||||
return 1
|
||||
if(ismovable(target))
|
||||
var/atom/movable/T = target
|
||||
var/throwdir = get_dir(firer,target)
|
||||
INVOKE_ASYNC(T, TYPE_PROC_REF(/atom/movable, throw_at), get_edge_target_turf(target, throwdir), 3, 3)
|
||||
return TRUE
|
||||
|
||||
/obj/item/projectile/bullet/cannonball
|
||||
name = "cannonball"
|
||||
|
||||
Reference in New Issue
Block a user