From 256722c41dace3ad297e563d4b77509e8f9fe7f2 Mon Sep 17 00:00:00 2001 From: SatinIsle <98125273+SatinIsle@users.noreply.github.com> Date: Wed, 18 Feb 2026 05:00:43 +0000 Subject: [PATCH] Fix meowl runtime (#19197) Fixes the meowl attempting to check a null target --- .../living/simple_mob/subtypes/vore/meowl.dm | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/code/modules/mob/living/simple_mob/subtypes/vore/meowl.dm b/code/modules/mob/living/simple_mob/subtypes/vore/meowl.dm index b0d3abece84..29d4d65786d 100644 --- a/code/modules/mob/living/simple_mob/subtypes/vore/meowl.dm +++ b/code/modules/mob/living/simple_mob/subtypes/vore/meowl.dm @@ -156,29 +156,30 @@ last_conflict_time = world.time // Check if there is more than one person nearby and if they allow eating them - if(!check_attacker(target)) //Only act friendly if you haven't been attacked yet - var/list/crowd = list_targets() + if(target) + if(!check_attacker(target)) //Only act friendly if you haven't been attacked yet + var/list/crowd = list_targets() - var/mob/living/L = target - if(istype(L)) - if(!L.allowmobvore && vore_hostile && distance <= 8) + var/mob/living/L = target + if(istype(L)) + if(!L.allowmobvore && vore_hostile && distance <= 8) + play_friend(target) + set_stance(STANCE_APPROACH) + return + + if(crowd.len > 1 && distance <= 8) play_friend(target) set_stance(STANCE_APPROACH) return - if(crowd.len > 1 && distance <= 8) - play_friend(target) - set_stance(STANCE_APPROACH) - return + // Don't attack if you're well fed! - // Don't attack if you're well fed! + var/mob/living/simple_mob/vore/meowl/M = holder - var/mob/living/simple_mob/vore/meowl/M = holder - - if(istype(M)) - if(M.well_fed + 10 MINUTES > world.time) - set_stance(STANCE_APPROACH) - return + if(istype(M)) + if(M.well_fed + 10 MINUTES > world.time) + set_stance(STANCE_APPROACH) + return // Do a 'special' attack, if one is allowed.