diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-01 21:53:17 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-01 21:53:17 +0000 |
commit | 5d51ba8e8b84af11603b0c9c87b6203618604df0 (patch) | |
tree | 5b5233c7f03a7c2e6665c487f1b7fad6f1230462 /src/map/skill.c | |
parent | 2c82c85e3857f9bcf513f4771f393f5f788f7f3f (diff) | |
download | hercules-5d51ba8e8b84af11603b0c9c87b6203618604df0.tar.gz hercules-5d51ba8e8b84af11603b0c9c87b6203618604df0.tar.bz2 hercules-5d51ba8e8b84af11603b0c9c87b6203618604df0.tar.xz hercules-5d51ba8e8b84af11603b0c9c87b6203618604df0.zip |
- Added function map_foreachinshootrange, behaves the same way as map_foreachinrange, but it also performs a "shoot-path" check before invoking the function. Used in the skill subtimer function if skill_wall_check is defined.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6436 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 3fb8dfcbb..b09d4927b 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -9639,8 +9639,12 @@ int skill_unit_timer_sub( struct block_list *bl, va_list ap ) /* onplace_timerイベント呼び?oし */
if (unit->range>=0 && group->interval!=-1) {
- map_foreachinrange(skill_unit_timer_sub_onplace, bl, unit->range,
- group->bl_flag,bl,tick);
+ if (battle_config.skill_wall_check)
+ map_foreachinshootrange(skill_unit_timer_sub_onplace, bl, unit->range,
+ group->bl_flag,bl,tick);
+ else
+ map_foreachinrange(skill_unit_timer_sub_onplace, bl, unit->range,
+ group->bl_flag,bl,tick);
if (!unit->alive)
return 0;
}
|