From 9ace7eb2f6992776b58deeefc2aadfecae2f7bd5 Mon Sep 17 00:00:00 2001 From: Emistry Haoyan Date: Wed, 1 May 2019 20:25:52 +0800 Subject: Update unitwarp script command. - allow NPC to warp to non-walkable cell. Just like `*movenpc` --- src/map/unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/unit.c') 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); -- cgit v1.2.3-60-g2f50