Fixes Lightning Walk versus magic skills (#6029)

* Fixes #5953.
* Lightning Walk should only be canceled by long ranged physical attack/skills.
Thanks to @Felleonel!
This commit is contained in:
Aleos 2021-06-23 13:41:01 -04:00 committed by GitHub
parent 5c59d1110e
commit 7bb74f0fd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1285,7 +1285,7 @@ bool battle_status_block_damage(struct block_list *src, struct block_list *targe
} }
// ATK_DEF Type // ATK_DEF Type
if ((sce = sc->data[SC_LIGHTNINGWALK]) && flag&BF_LONG && rnd() % 100 < sce->val1) { if ((sce = sc->data[SC_LIGHTNINGWALK]) && !(flag & BF_MAGIC) && flag&BF_LONG && rnd() % 100 < sce->val1) {
const int dx[8] = { 0,-1,-1,-1,0,1,1,1 }; const int dx[8] = { 0,-1,-1,-1,0,1,1,1 };
const int dy[8] = { 1,1,0,-1,-1,-1,0,1 }; const int dy[8] = { 1,1,0,-1,-1,-1,0,1 };
uint8 dir = map_calc_dir(target, src->x, src->y); uint8 dir = map_calc_dir(target, src->x, src->y);