summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-10-25 09:38:33 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-10-25 09:38:33 +0000
commit7da9ee0b5c0aad9425441bcddeeadb745aa4c0d5 (patch)
tree7207e15b81b7816156384b8f040ee5dda17de86a /src/map/status.c
parent9b4d9f29a8ab56f59cbac2cccbb685146f52faac (diff)
downloadhercules-7da9ee0b5c0aad9425441bcddeeadb745aa4c0d5.tar.gz
hercules-7da9ee0b5c0aad9425441bcddeeadb745aa4c0d5.tar.bz2
hercules-7da9ee0b5c0aad9425441bcddeeadb745aa4c0d5.tar.xz
hercules-7da9ee0b5c0aad9425441bcddeeadb745aa4c0d5.zip
* Implemented the official version of 'OnTouch' named as 'OnTouch_'.(it can be defined in script_athena.conf)
* Adapted 'map_foreachinarea' to 'map_forsomeinarea' so that it allows you to specify the number of bl you wanna operate on. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14097 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 61b269ace..bd9bba811 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -6200,6 +6200,9 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val
break;
}
+ if( sd && sd->ontouch.npc_id )
+ npc_touchnext_areanpc(sd,false);
+
return 1;
}
/*==========================================
@@ -6495,8 +6498,8 @@ int status_change_end(struct block_list* bl, enum sc_type type, int tid)
int range = 1
+skill_get_range2(bl, status_sc2skill(type), sce->val1)
+skill_get_range2(bl, TF_BACKSLIDING, 1); //Since most people use this to escape the hold....
- map_foreachinarea(status_change_timer_sub,
- bl->m, bl->x-range, bl->y-range, bl->x+range,bl->y+range,BL_CHAR,bl,sce,type,gettick());
+ map_forsomeinarea(status_change_timer_sub,
+ bl->m, bl->x-range, bl->y-range, bl->x+range,bl->y+range,0,BL_CHAR,bl,sce,type,gettick());
}
break;
case SC_COMBO: //Clear last used skill when it is part of a combo.