diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-24 14:33:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-24 15:27:07 +0300 |
commit | f94190251bc199582d819fefa448b32a662a297a (patch) | |
tree | 9da8729c5c2e7a20a5a355d520872897b5f7f9e2 /src/map/status.c | |
parent | 6b135d6fbda3e033712ab2a5dafe0c97f536cf3c (diff) | |
download | hercules-f94190251bc199582d819fefa448b32a662a297a.tar.gz hercules-f94190251bc199582d819fefa448b32a662a297a.tar.bz2 hercules-f94190251bc199582d819fefa448b32a662a297a.tar.xz hercules-f94190251bc199582d819fefa448b32a662a297a.zip |
Add bl parameter to getcell functions.
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c index 5ba0c688c..9a95b023c 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -1630,7 +1630,7 @@ int status_check_skilluse(struct block_list *src, struct block_list *target, uin break; case AL_TELEPORT: //Should fail when used on top of Land Protector [Skotlex] - if (src && map->getcell(src->m, src->x, src->y, CELL_CHKLANDPROTECTOR) + if (src && map->getcell(src->m, src, src->x, src->y, CELL_CHKLANDPROTECTOR) && !(st->mode&MD_BOSS) && (src->type != BL_PC || ((TBL_PC*)src)->skillitem != skill_id)) return 0; @@ -10440,7 +10440,7 @@ int status_change_end_(struct block_list* bl, enum sc_type type, int tid, const skill->unit_move(bl,timer->gettick(),1); if (opt_flag & 2 && sd) { - if (map->getcell(bl->m,bl->x,bl->y,CELL_CHKNPC)) + if (map->getcell(bl->m, bl, bl->x, bl->y, CELL_CHKNPC)) npc->touch_areanpc(sd,bl->m,bl->x,bl->y); //Trigger on-touch event. else npc->untouch_areanpc(sd, bl->m, bl->x, bl->y); |