You should check if in safe area, then switch world when path reaches end.
Because when walking reaches its destination it reverses the path automatically (wrong state), and then tries to switch worlds at the wrong place for example at rock crabs
The following happens:
3+ people in area
-> runs away
-> while running switches world
-> runs back (here things go wrong), while running want to switch world again
-> is attacked by crab and cant switch
or idle when ran away from combat
Bought it yesterday, sometimes it walks away and changes world while status says idle- in combat. Then stands there and doesn't do anything.
Does it check correctly if in combat?