From 022fd7205c818bdc3bde7429b08efc97f99b57b8 Mon Sep 17 00:00:00 2001 From: Dennis Friis Date: Sun, 6 Apr 2008 10:00:38 +0000 Subject: Goodbye fast attack bug, now you can control speeds of weapons in conf/job_db1.txt like it was meant to --- src/map/pc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2