- Fixed SC_JOINTBEAT not doing crit damage for the Neck Break ailment.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9605 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
FlavioJS 2007-01-02 08:46:03 +00:00
parent a35ee1f5d7
commit 88addb1951
3 changed files with 6 additions and 5 deletions

View File

@ -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]

View File

@ -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 &&

View File

@ -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;