summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorDennis Friis <peavey@placid.dk>2008-04-06 10:00:38 +0000
committerDennis Friis <peavey@placid.dk>2008-04-06 10:00:38 +0000
commit022fd7205c818bdc3bde7429b08efc97f99b57b8 (patch)
tree0dd404538264fdbe2cce399da509343a699eda3f /src/map/pc.c
parentf84a74afd7b808756925814d18b8926dbed9c3bd (diff)
downloadtmwa-022fd7205c818bdc3bde7429b08efc97f99b57b8.tar.gz
tmwa-022fd7205c818bdc3bde7429b08efc97f99b57b8.tar.bz2
tmwa-022fd7205c818bdc3bde7429b08efc97f99b57b8.tar.xz
tmwa-022fd7205c818bdc3bde7429b08efc97f99b57b8.zip
Goodbye fast attack bug, now you can control speeds of weapons in conf/job_db1.txt like it was meant to
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 067ca35..790fc32 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4073,6 +4073,9 @@ int pc_attack_timer(int tid,unsigned int tick,int id,int data)
return 0;
}
+ if (sd->attackabletime > tick)
+ return 0; // cannot attack yet
+
if(dist <= range && !battle_check_range(&sd->bl,bl,range) ) {
if(pc_can_reach(sd,bl->x,bl->y) && sd->canmove_tick < tick && (sd->sc_data[SC_ANKLE].timer == -1 || sd->sc_data[SC_SPIDERWEB].timer == -1))
pc_walktoxy(sd,bl->x,bl->y);