diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-30 18:56:33 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-30 18:56:33 +0000 |
commit | 1dc97e8a346414a600bedc25969d5ae21c28f401 (patch) | |
tree | d3143bd27af5046d7de7ddb96ebc47939b55f7b8 /src/map/pc.c | |
parent | 0cc1e7bfbd0d93024a12ee6f5d2aaf8f95b408d1 (diff) | |
download | hercules-1dc97e8a346414a600bedc25969d5ae21c28f401.tar.gz hercules-1dc97e8a346414a600bedc25969d5ae21c28f401.tar.bz2 hercules-1dc97e8a346414a600bedc25969d5ae21c28f401.tar.xz hercules-1dc97e8a346414a600bedc25969d5ae21c28f401.zip |
- Added bNoMiscDamage setting so you can specify misc-damage blocking from skills. Modified battle_calc_damage so that even Pressure and similar skills will be affected by this setting.
- Removed SC_LANDPROTECTOR as it wasn't being used by anything.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7982 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 15d2637ae..16828d87b 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -1625,6 +1625,12 @@ int pc_bonus(struct map_session_data *sd,int type,int val) val+= sd->special_state.no_weapon_damage; sd->special_state.no_weapon_damage = cap_value(val,0,100); break; + case SP_NO_MISC_DAMAGE: + if(sd->state.lr_flag == 2) + break; + val+= sd->special_state.no_misc_damage; + sd->special_state.no_misc_damage = cap_value(val,0,100); + break; case SP_NO_GEMSTONE: if(sd->state.lr_flag != 2) sd->special_state.no_gemstone = 1; |