mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-27 20:47: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()));
|
Mob *follow = entity_list.GetMob(static_cast<uint16>(GetFollowID()));
|
||||||
if (!follow) {
|
if (!follow) {
|
||||||
SetFollowID(0);
|
SetFollowID(0);
|
||||||
|
SetFollowDistance(100);
|
||||||
|
SetFollowCanRun(true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user