TK_POWER shouldn't count the player him/herself for the skill.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13931 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Inkfish 2009-07-04 11:29:36 +00:00
parent 50216b7ef6
commit e7219585ed
2 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,8 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
09/07/04
* TK_POWER shouldn't count the player him/herself for the skill. [Inkfish]
09/07/03 09/07/03
* Martyr's Reckoning can be perfect dodged. [Inkfish] * Martyr's Reckoning can be perfect dodged. [Inkfish]
* Casting Flying Kick while running and in the spurt status doubles the damage dealt without spurt status. (bugreport:1898) [Inkfish] * Casting Flying Kick while running and in the spurt status doubles the damage dealt without spurt status. (bugreport:1898) [Inkfish]

View File

@ -1359,8 +1359,8 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
ATK_ADDRATE(sd->crit_atk_rate); ATK_ADDRATE(sd->crit_atk_rate);
if(sd->status.party_id && (skill=pc_checkskill(sd,TK_POWER)) > 0){ if(sd->status.party_id && (skill=pc_checkskill(sd,TK_POWER)) > 0){
i = party_foreachsamemap(party_sub_count, sd, 0); if( (i = party_foreachsamemap(party_sub_count, sd, 0)) > 1 ) // exclude the player himself [Inkfish]
ATK_ADDRATE(2*skill*i); ATK_ADDRATE(2*skill*i);
} }
} }
break; break;