Преглед изворни кода

Corrected Union of the Sun Moon and Stars HP cost (#3507)

* Fixes #3500.
* Corrected the HP cost formula to reflect Aegis.
Thanks to @mrjnumber1 and @Lemongrass3110!
Aleos пре 6 година
родитељ
комит
8fc790339d
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      src/map/battle.cpp

+ 3 - 2
src/map/battle.cpp

@@ -5149,9 +5149,10 @@ struct Damage battle_calc_weapon_final_atk_modifiers(struct Damage wd, struct bl
 	if( sc ) {
 		//SC_FUSION hp penalty [Komurka]
 		if (sc->data[SC_FUSION]) {
-			int hp= sstatus->max_hp;
+			unsigned int hp = sstatus->max_hp;
+
 			if (sd && tsd) {
-				hp = 8*hp/100;
+				hp = hp / 13;
 				if (((int64)sstatus->hp * 100) <= ((int64)sstatus->max_hp * 20))
 					hp = sstatus->hp;
 			} else