Ver Fonte

Berserk HP recovery (fixes #993)
* Fixed a problem that HP/SP didn't recover properly when casting Berserk, MERC_HPUP or MERC_SPUP while attacking

Playtester há 9 anos atrás
pai
commit
1bf8537140
1 ficheiros alterados com 10 adições e 1 exclusões
  1. 10 1
      src/map/status.c

+ 10 - 1
src/map/status.c

@@ -10727,7 +10727,16 @@ int status_change_start(struct block_list* src, struct block_list* bl,enum sc_ty
 	if(sd) {
 		if (sd->pd)
 			pet_sc_check(sd, type); // Skotlex: Pet Status Effect Healing
-		status_calc_pc(sd, SCO_NONE);
+		switch (type) {
+			case SC_BERSERK:
+			case SC_MERC_HPUP:
+			case SC_MERC_SPUP:
+				status_calc_pc(sd, SCO_FORCE);
+				break;
+			default:
+				status_calc_pc(sd, SCO_NONE);
+				break;
+		}
 	}
 
 	// 1st thing to execute when loading status