summaryrefslogtreecommitdiff
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
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
-rw-r--r--Changelog-Trunk.txt1
-rw-r--r--src/map/battle.c8
-rw-r--r--src/map/status.c2
3 files changed, 6 insertions, 5 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index e34a66300..0864b76fa 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/12/02
+ * Fixed SC_JOINTBEAT not doing crit damage for the Neck Break ailment.
* Gospel sends the buff message to the affected player. [FlavioJS]
2006/12/31
* Made HSCR bypass both Guard and Shield Reflect using the dirty way [DracoRPG]
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 &&
diff --git a/src/map/status.c b/src/map/status.c
index 40f18e9af..72a506e8e 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -5251,7 +5251,7 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
break;
case SC_JOINTBEAT: // Random break [DracoRPG]
- val2 = rand()%6; //Type of break
+ val2 = rand()%6; //Type of break -> [0,5]
if (val2 == 5) sc_start(bl,SC_BLEEDING,100,val1,skill_get_time2(StatusSkillChangeTable[type],val1));
break;