Merge pull request #10495 from Very-Soft/ghostsandgateways

Ghosts can only go through the gateway if it's turned on
This commit is contained in:
Novacat
2021-05-30 14:59:25 -04:00
committed by Chompstation Bot
parent 1c3e965b5c
commit 7bce90d577
+12 -3
View File
@@ -66,12 +66,21 @@
if(target)
user.loc = get_turf(target)
/obj/machinery/gateway/centerstation/attack_ghost(mob/user as mob)
if(awaygate)
user.loc = awaygate.loc
// VOREStation Edit Begin
/obj/machinery/gateway/centerstation/attack_ghost(mob/user as mob)
if(awaygate)
if(user.client.holder)
user.loc = awaygate.loc
else if(active)
user.loc = awaygate.loc
else
return
else
to_chat(user, "[src] has no destination.")
// VOREStation Edit End
/obj/machinery/gateway/centeraway/attack_ghost(mob/user as mob)
if(stationgate)
user.loc = stationgate.loc