Attacking While Casting Crash Fix (#8322)
- Fixed a server crash that occurs when a unit did a normal attack while casting a spell (e.g. Free Cast) - Follow-up to ffe40de - Fixes #8319
This commit is contained in:
parent
04386a8ebc
commit
04117614cb
@ -2855,6 +2855,9 @@ static int unit_attack_timer_sub(struct block_list* src, int tid, t_tick tick)
|
|||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
ud->attackabletime = tick + sstatus->adelay;
|
ud->attackabletime = tick + sstatus->adelay;
|
||||||
|
|
||||||
|
// Only reset skill_id here if no skilltimer is currently ongoing
|
||||||
|
if (ud->skilltimer == INVALID_TIMER)
|
||||||
ud->skill_id = 0;
|
ud->skill_id = 0;
|
||||||
|
|
||||||
// You can't move if you can't attack neither.
|
// You can't move if you can't attack neither.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user