summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-09 20:11:14 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-09 20:11:14 +0000
commit203b881a3f76e822a0052e58c67bf46ba6ad0596 (patch)
tree9f918bdf4a68aa659f3c5c45186e198cbe2388b5 /src/map/unit.c
parenta3e718b798e8b7c5848b58a7646a783ac0163364 (diff)
downloadhercules-203b881a3f76e822a0052e58c67bf46ba6ad0596.tar.gz
hercules-203b881a3f76e822a0052e58c67bf46ba6ad0596.tar.bz2
hercules-203b881a3f76e822a0052e58c67bf46ba6ad0596.tar.xz
hercules-203b881a3f76e822a0052e58c67bf46ba6ad0596.zip
- Modified attack_walk_delay so it behaves on a 'per-object' basis, and changed the default to 15 (all types).
- Modified battle_delay_damage so damage is not delayed more than one second for non-player attacks. - Modified party_member_added with a hack so that the clif functions will send the info of the new member since party_recv_info has not yet arrived. - Updated clif_calc_delay so the type sent to the client is based on the number of hits of the skill (as Aegis packets reveal) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12332 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index f379bcc4c..98fdb350b 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1422,9 +1422,8 @@ 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.
- if (battle_config.attack_walk_delay)
- unit_set_walkdelay(src, tick,
- sstatus->amotion/battle_config.attack_walk_delay, 1);
+ if (src->type&battle_config.attack_walk_delay)
+ unit_set_walkdelay(src, tick, sstatus->amotion, 1);
}
if(ud->state.attack_continue)