Merge pull request #13317 from Very-Soft/kob

Makes AI not flee while in a tummy
This commit is contained in:
Casey
2022-07-31 14:51:27 -04:00
committed by CHOMPStation2
parent 51104e838f
commit a2ca0e4846

View File

@@ -18,6 +18,8 @@
if(can_flee)
if(special_flee_check())
return TRUE
if(isbelly(holder.loc)) //VOREStation Add - Don't flee while you're in a tummy, silly
return FALSE //VOREStation Add
if(!hostile && !retaliate)
return TRUE // We're not hostile and someone attacked us first.
if(flee_when_dying && (holder.health / holder.getMaxHealth()) <= dying_threshold)