From caa5cdd6786a21151a3bf24c6118e3c44aff4580 Mon Sep 17 00:00:00 2001 From: eppc0330 <47050704+eppc0330@users.noreply.github.com> Date: Sun, 17 Jul 2022 08:58:46 +0900 Subject: [PATCH] Fix displayed attack when missed (#7093) Fix miss when a unit dodges attack from player --- src/map/battle.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/map/battle.cpp b/src/map/battle.cpp index 172bf8c53d..f2befb51e5 100644 --- a/src/map/battle.cpp +++ b/src/map/battle.cpp @@ -8268,7 +8268,9 @@ struct Damage battle_calc_attack(int attack_type,struct block_list *bl,struct bl if (d.dmg_lv == ATK_DEF /*&& attack_type&(BF_MAGIC|BF_MISC)*/) // Isn't it that additional effects don't apply if miss? d.dmg_lv = ATK_MISS; d.dmotion = 0; - + if(bl->type == BL_PC) + d.div_ = 1; + status_change *tsc = status_get_sc(target); // Weapon Blocking has the ability to trigger on ATK_MISS as well.