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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8268,6 +8268,8 @@ 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? 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.dmg_lv = ATK_MISS;
d.dmotion = 0; d.dmotion = 0;
if(bl->type == BL_PC)
d.div_ = 1;
status_change *tsc = status_get_sc(target); status_change *tsc = status_get_sc(target);