diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-16 14:42:54 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-16 14:42:54 +0000 |
commit | ed800c53cea74042b2666c9588f8e92787013d14 (patch) | |
tree | 0684746027dbc96ab956628887ac403f706d9807 /src/map/map.c | |
parent | 4575744180e62e1ae1d90bf628ace2839aeb15a4 (diff) | |
download | hercules-ed800c53cea74042b2666c9588f8e92787013d14.tar.gz hercules-ed800c53cea74042b2666c9588f8e92787013d14.tar.bz2 hercules-ed800c53cea74042b2666c9588f8e92787013d14.tar.xz hercules-ed800c53cea74042b2666c9588f8e92787013d14.zip |
- Fire Pillar will now do 200%MATK damage per hit when level is >10.
- Blood Drain always hits now.
- Fixed Mob Area Skills not updating their use-time (rendering their skill delay useless)
- Search free cell will now skip picking the center-tile as target location. Will prevent slaves from walking on top of their master, or mobs placing stuff right under themselves with the "around" target conditions.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6621 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c index 41aa35d7e..9e962a5d5 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -1484,6 +1484,9 @@ int map_search_freecell(struct block_list *src, int m, short *x,short *y, int rx *x = (rx >= 0)?(rand()%rx2-rx+bx):(rand()%(map[m].xs-2)+1); *y = (ry >= 0)?(rand()%ry2-ry+by):(rand()%(map[m].ys-2)+1); + if (*x == bx && *y == by) + continue; //Avoid picking the same target tile. + if (map_getcell(m,*x,*y,CELL_CHKREACH)) { if(flag&2 && !unit_can_reach_pos(src, *x, *y, 1)) |