summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-31 14:46:56 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-31 14:46:56 +0000
commit9709434856f4e5ff3bf803d01c0bcf7a4811cc2d (patch)
treec8d549e905f42ae48146045f5e3f92378d10b880 /src/map/unit.c
parente25963f4562516f4b4aada3983af567f81555165 (diff)
downloadhercules-9709434856f4e5ff3bf803d01c0bcf7a4811cc2d.tar.gz
hercules-9709434856f4e5ff3bf803d01c0bcf7a4811cc2d.tar.bz2
hercules-9709434856f4e5ff3bf803d01c0bcf7a4811cc2d.tar.xz
hercules-9709434856f4e5ff3bf803d01c0bcf7a4811cc2d.zip
- Added setting attack_walk_delay which specifies whether a character should (or not) be able to move inmediately after starting a normal attack (battle.conf). Defaults to 0 since that's what Aegis uses.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8561 54d463be-8e91-2dee-dedb-b68131a5f0ec
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)