NPC earthquake now divides the atk2 bonus between players. (bugreport:1253)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12514 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Kevin 2008-04-07 02:18:11 +00:00
parent e7d2509efb
commit 4c6416ffb5
2 changed files with 3 additions and 1 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. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2008/04/06 2008/04/06
* NPC earthquake now divides the atk2 bonus between players. (r12514) [Kevin]
* Changed guild skills restore, regen, and battle order to only affect BL_PC. (r12513) [Kevin] * Changed guild skills restore, regen, and battle order to only affect BL_PC. (r12513) [Kevin]
* Reverted one of the changes in dynamic mobs that may * Reverted one of the changes in dynamic mobs that may
- be causing the spawning problems. (r12512) [Kevin] - be causing the spawning problems. (r12512) [Kevin]

View File

@ -2348,7 +2348,8 @@ struct Damage battle_calc_magic_attack(struct block_list *src,struct block_list
if (skill_num == NPC_EARTHQUAKE) if (skill_num == NPC_EARTHQUAKE)
{ //Adds atk2 to the damage, should be influenced by number of hits and skill-ratio, but not mdef reductions. [Skotlex] { //Adds atk2 to the damage, should be influenced by number of hits and skill-ratio, but not mdef reductions. [Skotlex]
ad.damage+= sstatus->rhw.atk2*skillratio/100; //Also divide the extra bonuses from atk2 based on the number in range [Kevin]
ad.damage+= (sstatus->rhw.atk2*skillratio/100)/mflag;
} }
if(ad.damage<1) if(ad.damage<1)