diff options
author | Kisuka <Kisuka@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-11-29 07:18:35 +0000 |
---|---|---|
committer | Kisuka <Kisuka@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-11-29 07:18:35 +0000 |
commit | adfe051544021eac9278b1bc153e045e903df12b (patch) | |
tree | 37086e9b9104207aa3989f37f0aea5cfad36e327 /src/map/battle.c | |
parent | 1dbfe55e921d79c745925b549c5903ce1595b02a (diff) | |
download | hercules-adfe051544021eac9278b1bc153e045e903df12b.tar.gz hercules-adfe051544021eac9278b1bc153e045e903df12b.tar.bz2 hercules-adfe051544021eac9278b1bc153e045e903df12b.tar.xz hercules-adfe051544021eac9278b1bc153e045e903df12b.zip |
- Official castle defense damage reduction/defense status changes. (bugreport:2901)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14175 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index dd70de892..d5c79eef2 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -615,9 +615,11 @@ int battle_calc_gvg_damage(struct block_list *src,struct block_list *bl,int dama case NJ_ZENYNAGE: break; default: + /* Uncomment if you want god-mode Emperiums at 100 defense. [Kisuka] if (md && md->guardian_data) { damage -= damage * (md->guardian_data->castle->defense/100) * battle_config.castle_defense_rate/100; } + */ if (flag & BF_SKILL) { //Skills get a different reduction than non-skills. [Skotlex] if (flag&BF_WEAPON) damage = damage * battle_config.gvg_weapon_damage_rate/100; |