From 7bb74f0fd4ba693950c3622aeeb04b54b7d4e77f Mon Sep 17 00:00:00 2001 From: Aleos Date: Wed, 23 Jun 2021 13:41:01 -0400 Subject: [PATCH] Fixes Lightning Walk versus magic skills (#6029) * Fixes #5953. * Lightning Walk should only be canceled by long ranged physical attack/skills. Thanks to @Felleonel! --- src/map/battle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/battle.cpp b/src/map/battle.cpp index 11b08d4e29..40bb41c7db 100644 --- a/src/map/battle.cpp +++ b/src/map/battle.cpp @@ -1285,7 +1285,7 @@ bool battle_status_block_damage(struct block_list *src, struct block_list *targe } // 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 dy[8] = { 1,1,0,-1,-1,-1,0,1 }; uint8 dir = map_calc_dir(target, src->x, src->y);