[Bug Fix] Undead Should Never Flee (#3926)

* [Bug Fix] Undead Should Never Flee

Added a hard return on Undead Body Types. They should never flee under any circumstance.

* space
This commit is contained in:
Fryguy 2024-01-08 23:24:57 -05:00 committed by GitHub
parent f59b4feb94
commit 23de0119ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,6 +49,11 @@ void Mob::CheckFlee()
return;
}
// Undead do not flee
if (GetBodyType() == BT_Undead) {
return;
}
// Check if Flee Timer is cleared
if (!flee_timer.Check()) {
return;