diff options
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c index 13106ccd6..1af6228b1 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -1718,7 +1718,7 @@ int status_calc_pc(struct map_session_data* sd,int first) if(sd->mdef_rate != 100) status->mdef = status->mdef * sd->mdef_rate/100; - if (!battle_config.weapon_defense_type && status->mdef > battle_config.max_def) + if (!battle_config.magic_defense_type && status->mdef > battle_config.max_def) { status->mdef2 += battle_config.over_def_bonus*(status->mdef -battle_config.max_def); status->mdef = (unsigned char)battle_config.max_def; |