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:
Playtester 2024-05-10 18:19:19 +02:00 committed by GitHub
parent 04386a8ebc
commit 04117614cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2855,7 +2855,10 @@ static int unit_attack_timer_sub(struct block_list* src, int tid, t_tick tick)
return 1;
ud->attackabletime = tick + sstatus->adelay;
ud->skill_id = 0;
// Only reset skill_id here if no skilltimer is currently ongoing
if (ud->skilltimer == INVALID_TIMER)
ud->skill_id = 0;
// You can't move if you can't attack neither.
if (src->type&battle_config.attack_walk_delay)