From 7d97ab538018917806545ad7060fd968c5e914a3 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 5 Apr 2008 05:28:01 +0000 Subject: PCs/Mobs/NPCs now block Leap(TK_HIGHJUMP) and sprint(TK_RUN). (bugreport:1155) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12485 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/unit.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/map/unit.c') diff --git a/src/map/unit.c b/src/map/unit.c index 252b65188..fa6c075db 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -420,6 +420,11 @@ int unit_run(struct block_list *bl) { if(!map_getcell(bl->m,to_x+dir_x,to_y+dir_y,CELL_CHKPASS)) break; + + //if sprinting and there's a PC/Mob/NPC, block the path [Kevin] + if(sc->data[SC_RUN] && map_count_oncell(bl->m, to_x+dir_x, to_y+dir_y, BL_PC|BL_MOB|BL_NPC)) + break; + to_x += dir_x; to_y += dir_y; } -- cgit v1.2.3-60-g2f50