Merge pull request #5834 from Sharkmare/patch-6

Fixes #5667 VR Crash
This commit is contained in:
Razgriz
2023-03-04 16:32:40 -07:00
committed by GitHub
+4
View File
@@ -84,6 +84,10 @@
var/mob/living/M = target
if(!istype(M))
return
//CHOMPADDITION: prevent trding bodies that have no mind and are carbon, mianly fixes VR crash
if(istype(M,/mob/living/carbon) && !M.mind)
return
//CHOMPADDITION: prevent trding bodies that have no mind and are carbon, mianly fixes VR crash
if(target != firer) //If you shot yourself, you probably want to be TFed so don't bother with prefs.
if(!M.allow_spontaneous_tf && !tf_admin_pref_override)
return