diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-03 05:57:20 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-03 05:57:20 +0000 |
commit | fedbdb48e0fd0fc340884b15c3ba31f6168c85e8 (patch) | |
tree | ed1c2c12a48cf9390d83095cca5ee05335625fb6 | |
parent | 4983c4ab7901b1b4c518355b47ec32520388a287 (diff) | |
download | hercules-fedbdb48e0fd0fc340884b15c3ba31f6168c85e8.tar.gz hercules-fedbdb48e0fd0fc340884b15c3ba31f6168c85e8.tar.bz2 hercules-fedbdb48e0fd0fc340884b15c3ba31f6168c85e8.tar.xz hercules-fedbdb48e0fd0fc340884b15c3ba31f6168c85e8.zip |
Fixed a bug that was causing monsters not to move towards the target
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@441 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog.txt | 8 | ||||
-rw-r--r-- | src/map/battle.c | 7 |
2 files changed, 10 insertions, 5 deletions
diff --git a/Changelog.txt b/Changelog.txt index 4b7126c96..6b31e8514 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -6,10 +6,14 @@ Date Added * Skill Updates [celest] - Modified Weapon Refine - should only +1 every time. - Updated Berserk, Chase Walk, Slim Pitcher - - Added skill_range_leniency + - Added skill_range_leniency : In some cases when moving to cast a skill the + exe will a send a UseSkill packet before the server has moved us to the + correct position, causing it to fail. Leaving this at 1 should be enough. + - Fixed a bug that was causing monsters not to move towards the target * Added check for clif.c in case the server didn't realise we've died [celest] * Added a fix for @npcmove by JohnC and Fredzilla - * Added motd_type [celest] + * Added motd_type : Set this to 1 if your clients have langtype problems and + can't display the motd properly[celest] * Edited atcommand.c to fix compile warnings [celest] 12/1 diff --git a/src/map/battle.c b/src/map/battle.c index e90eebbad..95ac787a9 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -4957,9 +4957,10 @@ int battle_check_range(struct block_list *src,struct block_list *bl,int range) if( range>0 && range < arange ) {// 遠すぎる // be lenient if the skill was cast before we have moved to the correct position [Celest] - if (src->type == BL_PC && ((struct map_session_data *)bl)->walktimer != -1 && - !((arange-=battle_config.skill_range_leniency)<=range)) - return 0; + if (src->type != BL_PC || + (src->type == BL_PC && ((struct map_session_data *)bl)->walktimer != -1 && + !((arange-=battle_config.skill_range_leniency)<=range))) + return 0; } if( arange<2 ) // 同じマスか隣接 |