summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 6881d487d..b81e5f066 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1315,7 +1315,9 @@ static int unit_attack_timer_sub(struct block_list* src, int tid, unsigned int t
ud->attackabletime = tick + sstatus->adelay;
// You can't move if you can't attack neither.
- unit_set_walkdelay(src, tick, sstatus->amotion, 1);
+ if (battle_config.attack_walk_delay)
+ unit_set_walkdelay(src, tick,
+ sstatus->amotion/battle_config.attack_walk_delay, 1);
}
if(ud->state.attack_continue)