Merge pull request #10793 from Verkister/patch-63

Adds a missing vore sanity check
This commit is contained in:
Aronai Sieyes
2021-07-03 16:17:42 -04:00
committed by GitHub
+4 -2
View File
@@ -479,7 +479,9 @@
//Sanity
if(!user || !prey || !pred || !istype(belly) || !(belly in pred.vore_organs))
log_debug("[user] attempted to feed [prey] to [pred], via [belly ? lowertext(belly.name) : "*null*"] but it went wrong.")
return
return FALSE
if(pred == prey)
return FALSE
// The belly selected at the time of noms
var/attempt_msg = "ERROR: Vore message couldn't be created. Notify a dev. (at)"
@@ -902,4 +904,4 @@
for(var/EL in B.emote_lists)
to_chat(src, "<span class='notice'><b>[EL]:</b></span>")
for(var/msg in B.emote_lists[EL])
to_chat(src, "<span class='notice'>[msg]</span>")
to_chat(src, "<span class='notice'>[msg]</span>")