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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index db50d4db4..49fcd1d2e 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1168,11 +1168,11 @@ static struct Damage battle_calc_weapon_attack(
break;
case LK_SPIRALPIERCE:
if (sd) {
- short index = sd->equip_index[9];
+ short index = sd->equip_index[EQI_HAND_R];
if (index >= 0 &&
sd->inventory_data[index] &&
- sd->inventory_data[index]->type == 4)
+ sd->inventory_data[index]->type == IT_WEAPON)
wd.damage = sd->inventory_data[index]->weight*8/100; //80% of weight
ATK_ADDRATE(50*skill_lv); //Skill modifier applies to weight only.
@@ -1194,13 +1194,13 @@ static struct Damage battle_calc_weapon_attack(
case CR_SHIELDBOOMERANG:
case PA_SHIELDCHAIN:
if (sd) {
- short index = sd->equip_index[8];
+ short index = sd->equip_index[EQI_HAND_L];
wd.damage = sstatus->batk;
if (index >= 0 &&
sd->inventory_data[index] &&
- sd->inventory_data[index]->type == 5)
+ sd->inventory_data[index]->type == IT_ARMOR)
ATK_ADD(sd->inventory_data[index]->weight/10);
break;
}
@@ -1896,10 +1896,10 @@ static struct Damage battle_calc_weapon_attack(
}
if (skill_num == CR_SHIELDBOOMERANG || skill_num == PA_SHIELDCHAIN) { //Refine bonus applies after cards and elements.
- short index= sd->equip_index[8];
+ short index= sd->equip_index[EQI_HAND_L];
if (index >= 0 &&
sd->inventory_data[index] &&
- sd->inventory_data[index]->type == 5)
+ sd->inventory_data[index]->type == IT_ARMOR)
ATK_ADD(10*sd->status.inventory[index].refine);
}
} //if (sd)