diff options
author | Emistry Haoyan <equinox1991@gmail.com> | 2019-05-01 20:25:52 +0800 |
---|---|---|
committer | Emistry Haoyan <equinox1991@gmail.com> | 2019-05-01 20:25:52 +0800 |
commit | 9ace7eb2f6992776b58deeefc2aadfecae2f7bd5 (patch) | |
tree | 337dd7460d6f8c77b9039dc2b729739358ad85c7 /src/map | |
parent | f272422f2dbd015691ecba06a14a18d48e7362da (diff) | |
download | hercules-9ace7eb2f6992776b58deeefc2aadfecae2f7bd5.tar.gz hercules-9ace7eb2f6992776b58deeefc2aadfecae2f7bd5.tar.bz2 hercules-9ace7eb2f6992776b58deeefc2aadfecae2f7bd5.tar.xz hercules-9ace7eb2f6992776b58deeefc2aadfecae2f7bd5.zip |
Update unitwarp script command.
- allow NPC to warp to non-walkable cell. Just like `*movenpc`
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/unit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 68e6aeec1..088b6d865 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); |