Fix meowl runtime (#19197)

Fixes the meowl attempting to check a null target
This commit is contained in:
SatinIsle
2026-02-18 00:00:43 -05:00
committed by GitHub
parent d516523450
commit 256722c41d
@@ -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.