fix some bad mobvore checks (#17528)

This commit is contained in:
Kashargul
2025-04-14 05:57:18 -04:00
committed by GitHub
parent 095f8c639d
commit 834571b0fe
3 changed files with 7 additions and 3 deletions
+4
View File
@@ -10,6 +10,8 @@
return FALSE
if(is_incorporeal())
return FALSE
if(!target.allowmobvore && isanimal(src) && !ckey)
return FALSE
if(world.time <= target.slip_protect)
return FALSE
if(!(src.can_be_drop_pred && target.devourable && target.can_be_drop_prey)) //Make sure both of their prefs align with what we're gonna do.
@@ -27,6 +29,8 @@
return FALSE
if(is_incorporeal())
return FALSE
if(!allowmobvore && isanimal(target) && !target.ckey)
return FALSE
if(world.time <= target.slip_protect)
return FALSE
if(!(target.can_be_drop_pred && src.devourable && src.can_be_drop_prey)) //Make sure both of their prefs align with what we're gonna do.