Fixes some nonhuman surgery oversights (#86749)

## About The Pull Request

Added a null check to mood, because it caused runtimes. Nonhumans have
mood, but they never initialize it, yet surgery mood assumes it is.

Removed unnecessary ishuman check in the organizer, allowing it to work
on xenomorphs and other theoretical carbons.
## Why It's Good For The Game

> Added a null check to mood, because it caused runtimes. Nonhumans have
mood, but they never initialize it, yet surgery mood assumes it is.

Bug bad

> Removed unnecessary ishuman check in the organizer, allowing it to
work on xenomorphs and other theoretical carbons.

Oversight bad
## Changelog
🆑
fix: Added a null check to mood, because it caused runtimes. Nonhumans
have mood, but they never initialize it, yet surgery mood assumes it is.
fix: Removed unnecessary ishuman check in the organizer, allowing it to
work on xenomorphs and other theoretical carbons.
/🆑
This commit is contained in:
carlarctg
2024-09-19 16:48:26 +02:00
committed by GitHub
parent 775161feb2
commit faae49e63d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -195,7 +195,7 @@
/obj/projectile/organ/on_hit(atom/target, blocked = 0, pierce_hit)
. = ..()
if(!ishuman(target))
if(!isliving(target))
organ.forceMove(drop_location())
organ = null
return