summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-05-06 01:20:31 +0200
committerGitHub <noreply@github.com>2019-05-06 01:20:31 +0200
commit60397aebbc67759ca35b546c0bbf6cf814735e14 (patch)
tree6d5e6fd9161df57b66f71d045dfecd3f48ce72b3
parentcfe4bdbebe9f98236c71e571b5120999180e1bfa (diff)
parent9ace7eb2f6992776b58deeefc2aadfecae2f7bd5 (diff)
downloadhercules-60397aebbc67759ca35b546c0bbf6cf814735e14.tar.gz
hercules-60397aebbc67759ca35b546c0bbf6cf814735e14.tar.bz2
hercules-60397aebbc67759ca35b546c0bbf6cf814735e14.tar.xz
hercules-60397aebbc67759ca35b546c0bbf6cf814735e14.zip
Merge pull request #2453 from Emistry/scriptcommand_unitwarp
Update unitwarp script command.
-rw-r--r--src/map/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index a6805c610..45cb7dffd 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -957,7 +957,7 @@ static int unit_warp(struct block_list *bl, short m, short x, short y, enum clr_
return 2;
}
- } else if (map->getcell(m, bl, x, y, CELL_CHKNOREACH)) {
+ } else if (bl->type != BL_NPC && map->getcell(m, bl, x, y, CELL_CHKNOREACH)) {
//Invalid target cell
ShowWarning("unit_warp: Specified non-walkable target cell: %d (%s) at [%d,%d]\n", m, map->list[m].name, x,y);