diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-11 17:44:58 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-11 17:44:58 +0000 |
commit | ac56a9becca22b5e86f2d92ee3e49c40d3c42b81 (patch) | |
tree | 04e9743b5a7ddb1b27906abf743be7459e07eb54 /src/map/unit.c | |
parent | 6749d6567aa972b5cc46e1ed85986be21e2ec799 (diff) | |
download | hercules-ac56a9becca22b5e86f2d92ee3e49c40d3c42b81.tar.gz hercules-ac56a9becca22b5e86f2d92ee3e49c40d3c42b81.tar.bz2 hercules-ac56a9becca22b5e86f2d92ee3e49c40d3c42b81.tar.xz hercules-ac56a9becca22b5e86f2d92ee3e49c40d3c42b81.zip |
- Fixed the subele bonus (elemental reduction) being applied to the element of the attacker instead of the element of the attack.
- mob skills now won't trigger on unit_stopwalking calls.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7614 54d463be-8e91-2dee-dedb-b68131a5f0ec
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; } |