summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 1654d5dc6..bec04d668 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -5688,12 +5688,15 @@ int status_change_end( struct block_list* bl , int type,int tid )
case SC_HIDING:
sc->option &= ~OPTION_HIDE;
+ opt_flag = 2; //Check for warp trigger.
break;
case SC_CLOAKING:
sc->option &= ~OPTION_CLOAK;
+ opt_flag = 2;
break;
case SC_CHASEWALK:
sc->option &= ~(OPTION_CHASEWALK|OPTION_CLOAK);
+ opt_flag = 2;
break;
case SC_SIGHT:
sc->option &= ~OPTION_SIGHT;
@@ -5781,6 +5784,9 @@ int status_change_end( struct block_list* bl , int type,int tid )
if (calc_flag)
status_calc_bl(bl,calc_flag);
+ if(opt_flag == 2 && sd && map_getcell(bl->m,bl->x,bl->y,CELL_CHKNPC))
+ npc_touch_areanpc(sd,bl->m,bl->x,bl->y); //Trigger on-touch event.
+
return 1;
}