diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-30 13:24:41 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-30 13:24:41 +0000 |
commit | 8990332f8e4af8ac589b22ec6b06a62cef12209b (patch) | |
tree | 4ea0668b0c2ea89aa604482c179a91c87e70bb47 /src/map/unit.c | |
parent | 4b2e025ed2bfd1d23dba095e828da403cf82663f (diff) | |
download | hercules-8990332f8e4af8ac589b22ec6b06a62cef12209b.tar.gz hercules-8990332f8e4af8ac589b22ec6b06a62cef12209b.tar.bz2 hercules-8990332f8e4af8ac589b22ec6b06a62cef12209b.tar.xz hercules-8990332f8e4af8ac589b22ec6b06a62cef12209b.zip |
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
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |