diff options
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 57a557395..5497f8c2e 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -198,7 +198,9 @@ static int unit_walktoxy_timer(int tid,unsigned int tick,int id,int data) return 0; if (md->min_chase > md->db->range2) md->min_chase--; //Walk skills are triggered regardless of target due to the idle-walk mob state. - if(!(ud->walk_count%WALK_SKILL_INTERVAL) && + //However, avoid triggering them when there's a forced stop-walk call + //(tid == -1) or client desync problems can appear. + if(tid != -1 && !(ud->walk_count%WALK_SKILL_INTERVAL) && mobskill_use(md, tick, -1)) return 0; } |