summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-27 21:00:39 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-27 21:00:39 +0000
commit7fde5cda86f543434529e5e5a79152091ca90744 (patch)
tree0db86210b49f6cae9efed842db00206b217fe1ae /src/map/unit.c
parent85127739369c09fb398de34b2d39fe5af4ca11ed (diff)
downloadhercules-7fde5cda86f543434529e5e5a79152091ca90744.tar.gz
hercules-7fde5cda86f543434529e5e5a79152091ca90744.tar.bz2
hercules-7fde5cda86f543434529e5e5a79152091ca90744.tar.xz
hercules-7fde5cda86f543434529e5e5a79152091ca90744.zip
- unit_remove_map will reset attackable-time, canact and canwalk delays.
- Added a timer in clif.c so that walk requests that are done while your cannot move duration will be delayed and processed afterwards (as long as the walk delay remaining is less than 2000 ms) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6329 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 7cb9ceed1..8373095f3 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1474,6 +1474,7 @@ int unit_remove_map(struct block_list *bl, int clrtype) {
unit_stop_attack(bl);
if (ud->skilltimer != -1)
unit_skillcastcancel(bl,0);
+ ud->attackabletime = ud->canmove_tick = ud->canact_tick = gettick();
clif_clearchar_area(bl,clrtype);
if (clrtype == 1) //Death. Remove all status changes.