Pārlūkot izejas kodu

Corrected Heat Barrel bonuses (#2882)

* Fixes #2875.
* Attack was not factoring in coins.
* Corrected fixed cast time to also factor in coins.
Thanks to @rye305!
Aleos 7 gadi atpakaļ
vecāks
revīzija
75a8f520a6
1 mainītis faili ar 10 papildinājumiem un 4 dzēšanām
  1. 10 4
      src/map/status.cpp

+ 10 - 4
src/map/status.cpp

@@ -10948,10 +10948,16 @@ int status_change_start(struct block_list* src, struct block_list* bl,enum sc_ty
 			val2 = src->id;
 			break;
 		case SC_HEAT_BARREL:
-			//kRO Update 2016-05-25
-			val2 = val1 * 5; // -fixed casttime
-			val3 = 6 + val1 * 2; // ATK
-			val4 = 25 + val1 * 5; // -hit
+			{
+				uint8 n = 10;
+				if (sd)
+					n = (uint8)sd->spiritball_old;
+
+				//kRO Update 2016-05-25
+				val2 = n * 5; // -fixed casttime
+				val3 = (6 + val1 * 2) * n; // ATK
+				val4 = 25 + val1 * 5; // -hit
+			}
 			break;
 		case SC_P_ALTER:
 			{