summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index aab2ad3eb..f80148d57 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3214,11 +3214,11 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
flag.pdef ?(def1+vit_def):0,
flag.pdef2?(def1+vit_def):0
);
- if (!flag.idef || !flag.idef2){
+ if( !flag.idef )
wd.damage = wd.damage * (4000+def1) / (4000+10*def1) - vit_def;
- if(flag.lh)
- wd.damage2 = wd.damage2 * (4000+def1) / (4000+10*def1) - vit_def;
- }
+ if( flag.lh && !flag.idef2 )
+ wd.damage2 = wd.damage2 * (4000+def1) / (4000+10*def1) - vit_def;
+
#else
if (def1 > 100) def1 = 100;