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