ismecha define

This commit is contained in:
KorPhaeron
2017-10-02 01:03:40 -05:00
committed by CitadelStationBot
parent cc93f1e546
commit 3e26e09db8
30 changed files with 825 additions and 34 deletions
+1 -1
View File
@@ -144,7 +144,7 @@
ignore_source_check = TRUE
return FALSE
if(firer && !ignore_source_check)
if(A == firer || (A == firer.loc && istype(A, /obj/mecha))) //cannot shoot yourself or your mech
if(A == firer || (A == firer.loc && ismecha(A))) //cannot shoot yourself or your mech
loc = A.loc
return FALSE