summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-02 08:46:03 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-02 08:46:03 +0000
commit350416fff4bb9e8bc50b5f8205d04f772e848a92 (patch)
tree7d53ad7bdafab2e475fdc7a067f261158420f947 /src/map/battle.c
parent9f6cebfb2673a3da602cb5f1a86cff3751636a85 (diff)
downloadhercules-350416fff4bb9e8bc50b5f8205d04f772e848a92.tar.gz
hercules-350416fff4bb9e8bc50b5f8205d04f772e848a92.tar.bz2
hercules-350416fff4bb9e8bc50b5f8205d04f772e848a92.tar.xz
hercules-350416fff4bb9e8bc50b5f8205d04f772e848a92.zip
- Fixed SC_JOINTBEAT not doing crit damage for the Neck Break ailment.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9605 54d463be-8e91-2dee-dedb-b68131a5f0ec
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 9f6300bfb..b399960ab 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1028,7 +1028,7 @@ static struct Damage battle_calc_weapon_attack(
if (tsc->data[SC_SLEEP].timer!=-1 )
cri <<=1;
if(tsc->data[SC_JOINTBEAT].timer != -1 &&
- tsc->data[SC_JOINTBEAT].val2 == 6) // Always take crits with Neck broken by Joint Beat [DracoRPG]
+ tsc->data[SC_JOINTBEAT].val2 == 5) // Always take crits with Neck broken by Joint Beat [DracoRPG]
flag.cri=1;
}
switch (skill_num)
@@ -1213,12 +1213,12 @@ static struct Damage battle_calc_weapon_attack(
sd->inventory_data[index] &&
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.
index = sstatus->str/10;
index = index*index;
ATK_ADD(index); //Add str bonus.
-
+
switch (tstatus->size) { //Size-fix. Is this modified by weapon perfection?
case 0: //Small: 125%
ATK_RATE(125);
@@ -1234,7 +1234,7 @@ static struct Damage battle_calc_weapon_attack(
case PA_SHIELDCHAIN:
if (sd) {
short index = sd->equip_index[EQI_HAND_L];
-
+
wd.damage = sstatus->batk;
if (index >= 0 &&