Fix displayed attack when missed (#7093)

Fix miss when a unit dodges attack from player
This commit is contained in:
eppc0330
2022-07-17 08:58:46 +09:00
committed by GitHub
parent 85454cc7ae
commit caa5cdd678

View File

@@ -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.