Check if Poly is alive before fleeing attack. (#31334)

This commit is contained in:
Alan
2025-12-24 14:53:11 +00:00
committed by GitHub
parent 53c1ebfa70
commit 7ebbd0c39f
@@ -181,7 +181,7 @@
if(..())
return FINISH_ATTACK
if(O.force)
if(O.force && stat == CONSCIOUS)
if(parrot_state == PARROT_PERCH)
parrot_sleep_dur = parrot_sleep_max //Reset it's sleep timer if it was perched