From 8990332f8e4af8ac589b22ec6b06a62cef12209b Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 30 Dec 2011 13:24:41 +0000 Subject: Fixed ancient MvP dmotion/walkdelay/hitlock exploit, bugreport:1851 -- The fix on this commit works thanks to a previous commit i did weeks ago to fix other mob walk delay bug git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15330 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/unit.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/map/unit.c') diff --git a/src/map/unit.c b/src/map/unit.c index d9faf46c6..14c90453c 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -962,6 +962,12 @@ int unit_set_walkdelay(struct block_list *bl, unsigned int tick, int delay, int struct unit_data *ud = unit_bl2ud(bl); if (delay <= 0 || !ud) return 0; + /** + * MvP mobs have no walk delay + **/ + if( bl->type == BL_MOB && (((TBL_MOB*)bl)->status.mode&MD_BOSS) ) + return 0; + if (type) { if (DIFF_TICK(ud->canmove_tick, tick+delay) > 0) return 0; -- cgit v1.2.3-70-g09d2