Prechádzať zdrojové kódy

Fix SC_CHANGE not using max matk (#6382)

Thanks to Hercules for the fix

Co-authored-by: Aleos <aleos89@users.noreply.github.com>
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
Sandro Junior 3 rokov pred
rodič
commit
9b05754071
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  1. 4 0
      src/map/battle.cpp

+ 4 - 0
src/map/battle.cpp

@@ -2260,6 +2260,10 @@ static int64 battle_calc_base_damage(struct block_list *src, struct status_data
 	sd = BL_CAST(BL_PC, src);
 
 	if (!sd) { //Mobs/Pets
+#ifndef RENEWAL
+		if (sc != nullptr && sc->data[SC_CHANGE] != nullptr)
+			return status->matk_max; // [Aegis] simply uses raw max matk for base damage when Mental Charge active
+#endif
 		if(flag&4) {
 			atkmin = status->matk_min;
 			atkmax = status->matk_max;