summaryrefslogtreecommitdiff
path: root/src/map/battle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/battle.cpp')
-rw-r--r--src/map/battle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/battle.cpp b/src/map/battle.cpp
index 52be591..3b7c6b2 100644
--- a/src/map/battle.cpp
+++ b/src/map/battle.cpp
@@ -1592,6 +1592,8 @@ struct Damage battle_calc_pc_weapon_attack(dumb_ptr<block_list> src,
if (tsd && tsd->critical_def)
cri = cri * (100 - tsd->critical_def) / 100;
+ else if (tmd && tmd->stats[mob_stat::CRITICAL_DEF])
+ cri = cri * (100 - tmd->stats[mob_stat::CRITICAL_DEF]) / 100;
// ダブルアタックが発動していない | Double Attack is not activated
// 判定(スキルの場合は無視) | Judgment (ignored for skills)