Browse Source

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
Kevin 17 năm trước cách đây
mục cha
commit
4c6416ffb5
2 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 1 0
      Changelog-Trunk.txt
  2. 2 1
      src/map/battle.c

+ 1 - 0
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.
 
 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]
 	* Reverted one of the changes in dynamic mobs that may
 	- be causing the spawning problems. (r12512) [Kevin]

+ 2 - 1
src/map/battle.c

@@ -2348,7 +2348,8 @@ struct Damage battle_calc_magic_attack(struct block_list *src,struct block_list
 		
 		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]
-			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)