- Fixed skill usage being blocked if you use Weapon Refine and there is nothing available to upgrade.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9839 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex 2007-02-09 21:10:17 +00:00
parent b8bc4928ac
commit 3f8bb2d5bb
2 changed files with 8 additions and 7 deletions

View File

@ -5372,9 +5372,10 @@ int clif_item_refine_list(struct map_session_data *sd)
} }
WFIFOW(fd,2)=c*13+4; WFIFOW(fd,2)=c*13+4;
WFIFOSET(fd,WFIFOW(fd,2)); WFIFOSET(fd,WFIFOW(fd,2));
if (c > 0) {
sd->menuskill_id = WS_WEAPONREFINE; sd->menuskill_id = WS_WEAPONREFINE;
sd->menuskill_lv = skilllv; sd->menuskill_lv = skilllv;
}
return 0; return 0;
} }

View File

@ -312,7 +312,7 @@ int unit_walktoxy( struct block_list *bl, int x, int y, int flag) {
return 1; return 1;
} }
if (ud->attacktimer != -1) { if(ud->attacktimer != -1) {
delete_timer( ud->attacktimer, unit_attack_timer ); delete_timer( ud->attacktimer, unit_attack_timer );
ud->attacktimer = -1; ud->attacktimer = -1;
} }
@ -373,16 +373,16 @@ int unit_walktobl(struct block_list *bl, struct block_list *tbl, int range, int
return 1; return 1;
} }
if (DIFF_TICK(ud->canmove_tick, gettick()) > 0) if(DIFF_TICK(ud->canmove_tick, gettick()) > 0)
{ //Can't move, wait a bit before invoking the movement. { //Can't move, wait a bit before invoking the movement.
add_timer(ud->canmove_tick+1, unit_walktobl_sub, bl->id, ud->target); add_timer(ud->canmove_tick+1, unit_walktobl_sub, bl->id, ud->target);
return 1; return 1;
} }
if (!unit_can_move(bl)) if(!unit_can_move(bl))
return 0; return 0;
if (ud->attacktimer != -1) { if(ud->attacktimer != -1) {
delete_timer( ud->attacktimer, unit_attack_timer ); delete_timer( ud->attacktimer, unit_attack_timer );
ud->attacktimer = -1; ud->attacktimer = -1;
} }