diff options
author | shennetsind <ind@henn.et> | 2014-02-01 17:33:34 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2014-02-01 17:33:34 -0200 |
commit | 8a05e611a71168cccac282777aa1719a46f574d0 (patch) | |
tree | 77cf2a49f6f18a4270ea564fdbb85056fa78bfdf /src/map | |
parent | 2263dc4660c6668c373f6a9e654e21bea8c419e4 (diff) | |
download | hercules-8a05e611a71168cccac282777aa1719a46f574d0.tar.gz hercules-8a05e611a71168cccac282777aa1719a46f574d0.tar.bz2 hercules-8a05e611a71168cccac282777aa1719a46f574d0.tar.xz hercules-8a05e611a71168cccac282777aa1719a46f574d0.zip |
MvP dmotion fix
Effect would not be applied when mvp is under no status conditions, also adjusted spelling in secure.h
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/status.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/map/status.c b/src/map/status.c index 74b2571e1..6cc3269e5 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -5529,12 +5529,14 @@ short status_calc_aspd_rate(struct block_list *bl, struct status_change *sc, int } unsigned short status_calc_dmotion(struct block_list *bl, struct status_change *sc, int dmotion) { + // It has been confirmed on official servers that MvP mobs have no dmotion even without endure + if( bl->type == BL_MOB && (((TBL_MOB*)bl)->status.mode&MD_BOSS) ) + return 0; + if( !sc || !sc->count || map_flag_gvg2(bl->m) || map->list[bl->m].flag.battleground ) return cap_value(dmotion,0,USHRT_MAX); - /** - * It has been confirmed on official servers that MvP mobs have no dmotion even without endure - **/ - if( sc->data[SC_ENDURE] || ( bl->type == BL_MOB && (((TBL_MOB*)bl)->status.mode&MD_BOSS) ) ) + + if( sc->data[SC_ENDURE] ) return 0; if( sc->data[SC_RUN] || sc->data[SC_WUGDASH] ) return 0; |