diff options
author | malufett <malufett.eat.my.binaries@gmail.com> | 2013-02-21 21:27:35 +0800 |
---|---|---|
committer | malufett <malufett.eat.my.binaries@gmail.com> | 2013-02-21 21:27:35 +0800 |
commit | 064dad8c094d9c694a73a0110189932c9ab4f257 (patch) | |
tree | ce9c6d96c0de5963a38964c713c5c8f77a92b897 /src/map/unit.c | |
parent | 625981b877c90a69b1ae644013edcd59f9143e9c (diff) | |
download | hercules-064dad8c094d9c694a73a0110189932c9ab4f257.tar.gz hercules-064dad8c094d9c694a73a0110189932c9ab4f257.tar.bz2 hercules-064dad8c094d9c694a73a0110189932c9ab4f257.tar.xz hercules-064dad8c094d9c694a73a0110189932c9ab4f257.zip |
Fixed Bug #7066 and Follow up Bug #4832
-Where KG and OB can hit there Zanzoe.
-Ankle Snare should now work properly in GvG.
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 4ca64d7f8..388c3757d 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -353,8 +353,6 @@ int unit_walktoxy( struct block_list *bl, short x, short y, int flag) map_random_dir(bl, &ud->to_x, &ud->to_y); if(ud->walktimer != INVALID_TIMER) { - if( !battle_config.skill_trap_type && sc && map_flag_gvg(bl->m) && sc->data[SC_ANKLE] ) // Ankle disallows you from changing your path - return 0; // When you come to the center of the grid because the change of destination while you're walking right now // Call a function from a timer unit_walktoxy_sub ud->state.change_walk_target = 1; @@ -430,8 +428,6 @@ int unit_walktobl(struct block_list *bl, struct block_list *tbl, int range, int map_random_dir(bl, &ud->to_x, &ud->to_y); if(ud->walktimer != INVALID_TIMER) { - if( !battle_config.skill_trap_type && sc && map_flag_gvg(bl->m) && sc->data[SC_ANKLE] ) // Ankle disallows you from changing your path - return 0; ud->state.change_walk_target = 1; set_mobstate(bl, flag&2); return 1; @@ -938,8 +934,6 @@ int unit_can_move(struct block_list *bl) { ) return 0; - if( sc->data[SC_ANKLE] && ( battle_config.skill_trap_type || ( !map_flag_gvg(bl->m) && !unit_is_walking(bl) ) ) ) // Ankle only stops you after you're done moving - return 0; if (sc->opt1 > 0 && sc->opt1 != OPT1_STONEWAIT && sc->opt1 != OPT1_BURNING && !(sc->opt1 == OPT1_CRYSTALIZE && bl->type == BL_MOB)) return 0; |