summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-29 18:08:07 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-29 18:08:07 +0000
commit69ca5fffbb6a940b9c5b7753c6c57d2c9c5b5abe (patch)
tree284aec7bb707c2ef343eeaed207f0769cb0f6a7a /src/map/status.c
parent21b1dac6905f6e74054c567d6af3236f2de94dbc (diff)
downloadhercules-69ca5fffbb6a940b9c5b7753c6c57d2c9c5b5abe.tar.gz
hercules-69ca5fffbb6a940b9c5b7753c6c57d2c9c5b5abe.tar.bz2
hercules-69ca5fffbb6a940b9c5b7753c6c57d2c9c5b5abe.tar.xz
hercules-69ca5fffbb6a940b9c5b7753c6c57d2c9c5b5abe.zip
- Updated max_def parameter to not apply to mdef if magic_defense_type is set (rather than weapon_defense_type)
- Updated comment description for config setting max_def - Fixed battle_check_target check on BCT_ALL to check versus BL_CHAR instead of BL_PC and BL_MOB git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6826 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c2
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;