From 23de0119ff04036d6d0d7a5d65e14ad06dfeddc6 Mon Sep 17 00:00:00 2001 From: Fryguy Date: Mon, 8 Jan 2024 23:24:57 -0500 Subject: [PATCH] [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 --- zone/fearpath.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zone/fearpath.cpp b/zone/fearpath.cpp index cedf1d410..96895a550 100644 --- a/zone/fearpath.cpp +++ b/zone/fearpath.cpp @@ -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;