mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-28 13:27:15 +00:00
Reset all follow variables when follow target is gone
This commit is contained in:
@@ -1635,6 +1635,8 @@ void Mob::AI_Process() {
|
||||
Mob *follow = entity_list.GetMob(static_cast<uint16>(GetFollowID()));
|
||||
if (!follow) {
|
||||
SetFollowID(0);
|
||||
SetFollowDistance(100);
|
||||
SetFollowCanRun(true);
|
||||
}
|
||||
else {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user