diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-12-06 18:21:32 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-12-06 18:21:32 +0000 |
commit | f4edc7e4431b929acc62e4c2427e815ba9d69779 (patch) | |
tree | ac82447101de9f643bef0fa7a5b3a56bd1e37194 /src/map/skill.c | |
parent | f7ff1f208a2ce086fe6636b8359c65cf14ab68f4 (diff) | |
download | hercules-f4edc7e4431b929acc62e4c2427e815ba9d69779.tar.gz hercules-f4edc7e4431b929acc62e4c2427e815ba9d69779.tar.bz2 hercules-f4edc7e4431b929acc62e4c2427e815ba9d69779.tar.xz hercules-f4edc7e4431b929acc62e4c2427e815ba9d69779.zip |
- Cleaned up the implementation of map_foreachinmovearea so that the number of arguments passed is less.
- Moved setting a mob's chase/attack states from the mob_ai to unit_attack and unit_walktobl.
- Cleaned the change-target/cast-sensor code to account for the new mob modes.
- Cleaned up a bit the mob ai sub hard function.
- Made the monster_active_enable config setting take effect on mob load.
- Updated the doc explaining mob modes.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9422 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 378e46796..daf0abc04 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -1780,18 +1780,16 @@ int skill_blown (struct block_list *src, struct block_list *target, int count) if (!dx && !dy) //Could not knockback. return 0; - map_foreachinmovearea(clif_outsight,target->m, - x-AREA_SIZE,y-AREA_SIZE,x+AREA_SIZE,y+AREA_SIZE, - dx,dy,target->type==BL_PC?BL_ALL:BL_PC,target); + map_foreachinmovearea(clif_outsight, target, AREA_SIZE, + dx, dy, target->type==BL_PC?BL_ALL:BL_PC, target); if(su) skill_unit_move_unit_group(su->group,target->m,dx,dy); else map_moveblock(target, nx, ny, gettick()); - map_foreachinmovearea(clif_insight,target->m, - nx-AREA_SIZE,ny-AREA_SIZE,nx+AREA_SIZE,ny+AREA_SIZE, - -dx,-dy,target->type==BL_PC?BL_ALL:BL_PC,target); + map_foreachinmovearea(clif_insight, target, AREA_SIZE, + -dx, -dy, target->type==BL_PC?BL_ALL:BL_PC, target); if(!(count&0x20000)) clif_blown(target); |