From 4e039253ef7dbed85c64625cfd1f5175e8d423e3 Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 29 Sep 2006 16:17:00 +0000 Subject: - Changed some numbers for their respective constants in battle.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8901 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/battle.c | 12 ++++++------ 1 file 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) -- cgit v1.2.3-70-g09d2