Browse Source

Updated SC_*_LIFEPOTION and SC_S_MANAPOTION (#8011)

* Removed the heal effect from SC_*_LIFEPOTION and SC_S_MANAPOTION like on official servers.
Atemo 1 year ago
parent
commit
8102f5eaad
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/map/status.cpp

+ 2 - 2
src/map/status.cpp

@@ -14015,7 +14015,7 @@ TIMER_FUNC(status_change_timer){
 			int hp = 0;
 			if( status->hp < status->max_hp && !sc->getSCE(SC_BERSERK) )
 				hp = (sce->val1 < 0) ? (int)(status->max_hp * -1 * sce->val1 / 100.) : sce->val1;
-			status_heal(bl, hp, 0, 2);
+			status_heal(bl, hp, 0, 0);
 			sc_timer_next((sce->val2 * 1000) + tick);
 			return 0;
 		}
@@ -14027,7 +14027,7 @@ TIMER_FUNC(status_change_timer){
 			int sp = 0;
 			if( status->sp < status->max_sp && !sc->getSCE(SC_BERSERK) )
 				sp = (sce->val1 < 0) ? (int)(status->max_sp * -1 * sce->val1 / 100.) : sce->val1;
-			status_heal(bl, 0, sp, 2);
+			status_heal(bl, 0, sp, 0);
 			sc_timer_next((sce->val2 * 1000) + tick);
 			return 0;
 		}