summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/battle.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index bbee2fe24..72d9cddf1 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1944,8 +1944,8 @@ static struct Damage battle_calc_weapon_attack(
if(!flag.lh && wd.damage2)
wd.damage2=0;
- if(wd.damage > 0 || wd.damage2 > 0)
- {
+ if(wd.damage + wd.damage2)
+ { //There is a total damage value
if(!wd.damage2) {
wd.damage=battle_calc_damage(src,target,wd.damage,wd.div_,skill_num,skill_lv,wd.flag);
if (map_flag_gvg(target->m))
@@ -1955,8 +1955,7 @@ static struct Damage battle_calc_weapon_attack(
wd.damage2=battle_calc_damage(src,target,wd.damage2,wd.div_,skill_num,skill_lv,wd.flag);
if (map_flag_gvg(target->m))
wd.damage2=battle_calc_gvg_damage(src,target,wd.damage2,wd.div_,skill_num,skill_lv,wd.flag);
- }
- else
+ } else
{
int d1=wd.damage+wd.damage2,d2=wd.damage2;
wd.damage=battle_calc_damage(src,target,d1,wd.div_,skill_num,skill_lv,wd.flag);