summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-20 00:08:46 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-20 00:08:46 +0000
commit28568dcb403cb7d1369b4bb2a4242a108794dbf9 (patch)
tree0c30dd043bfc9a136d6bca8ee7b53041c7ea5aea /src/map/unit.c
parent526535c336409064e85aaf725a06239285d5399a (diff)
downloadhercules-28568dcb403cb7d1369b4bb2a4242a108794dbf9.tar.gz
hercules-28568dcb403cb7d1369b4bb2a4242a108794dbf9.tar.bz2
hercules-28568dcb403cb7d1369b4bb2a4242a108794dbf9.tar.xz
hercules-28568dcb403cb7d1369b4bb2a4242a108794dbf9.zip
- Added back the "you can't walk delay while attacking" to unit_attack_timer, now when you want to walk during your attack animation, you will only stop attacking, you will have to click again to move.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6185 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 08b29cc5b..8b60d4ef5 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1302,9 +1302,7 @@ static int unit_attack_timer_sub(struct block_list* src, int tid, unsigned int t
ud->attackabletime = tick + status_get_adelay(src);
// You can't move if you can't attack neither.
-// Only for non-players, since it makes it near impossible to run away when you are on auto-attack.
- if (src->type != BL_PC)
- unit_set_walkdelay(src, tick, status_get_amotion(src), 1);
+ unit_set_walkdelay(src, tick, status_get_amotion(src), 1);
}
if(ud->state.attack_continue)