summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-13 04:04:46 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-13 04:04:46 +0000
commitd2111363fea81d55450430a92e371d3a606e4629 (patch)
tree9f4a2d791b7ff8ece7d3e1951a96f03fc9c799ac /src/map/skill.c
parent462927e702cf7254e08dcc935beed0fa16fa203f (diff)
downloadhercules-d2111363fea81d55450430a92e371d3a606e4629.tar.gz
hercules-d2111363fea81d55450430a92e371d3a606e4629.tar.bz2
hercules-d2111363fea81d55450430a92e371d3a606e4629.tar.xz
hercules-d2111363fea81d55450430a92e371d3a606e4629.zip
- Added CELL_CHKSTACK to check if a map cell is stacked (CELL_NOSTACK server mod)
- Added flag 0x3000 to path_search to specify that path searching should go through stacked cells. Used for skill_wall_check calls. - easy path_search will be successful in CELL_NOSTACK mode if the search fails only on the target cell (it is presumed the target cell contains the character one is trying to reach). The walk routines will take care of stopping the character from walking into another one when stacked. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5263 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 4b77391a2..d10aaf4ea 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -6696,7 +6696,7 @@ struct skill_unit_group *skill_unitsetting( struct block_list *src, int skillid,
if (alive && battle_config.skill_wall_check) {
//Check if there's a path between cell and center of casting.
struct walkpath_data wpd;
- if (path_search(&wpd,src->m,ux,uy,x,y,1)==-1)
+ if (path_search(&wpd,src->m,ux,uy,x,y,0x30001)==-1)
alive = 0;
}