Browse Source

- Reverted the "fix" to mdef reduction code being applied before the number of hits adjustment @.@

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8521 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 năm trước cách đây
mục cha
commit
8de2aba3b4
2 tập tin đã thay đổi với 3 bổ sung6 xóa
  1. 0 2
      Changelog-Trunk.txt
  2. 3 4
      src/map/battle.c

+ 0 - 2
Changelog-Trunk.txt

@@ -5,8 +5,6 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2006/08/28
 	* Fixed exp bonuses applying twice for the job-exp [Skotlex]
-	* Magic damage adjustment per number of hits is now performed before mdef
-	  reductions. [Skotlex]
 	* @reloadbattleconf  will now also update the ragsrvinfo table on the
 	  char-server. [Skotlex]
 	* Reverted Mpeg's change of NJ_BUNSINJYUTSU SCB [Toms]

+ 3 - 4
src/map/battle.c

@@ -2365,8 +2365,6 @@ struct Damage battle_calc_magic_attack(
 					MATK_ADD(50);
 			}
 		}
-		//Adjust damage per number of hits.
-		damage_div_fix(ad.damage, ad.div_);
 
 		if(sd) {
 			//Ignore Defense?
@@ -2451,8 +2449,9 @@ struct Damage battle_calc_magic_attack(
 
 			MATK_RATE(cardfix);
 		}
-	} else //Correct number of hits anyway.
-		damage_div_fix(ad.damage, ad.div_);
+	}
+
+	damage_div_fix(ad.damage, ad.div_);
 	
 	if (flag.infdef && ad.damage)
 		ad.damage = ad.damage>0?1:-1;