diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/battle.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 ) // 同じマスか隣接 |