mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-22 18:52:26 +00:00
Reset all follow variables when follow target is gone
This commit is contained in:
parent
467e2d3114
commit
cc920e60d9
@ -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 {
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user