Sfoglia il codice sorgente

Disable vitality fix, thanks jiv for report.

_DS_ 15 anni fa
parent
commit
445a8e2132

+ 2 - 2
L2_GameServer/java/net/sf/l2j/gameserver/model/actor/stat/PcStat.java

@@ -144,7 +144,7 @@ public class PcStat extends PlayableStat
 
 	public boolean addExpAndSp(long addToExp, int addToSp, boolean useVitality)
 	{
-		if (useVitality)
+		if (useVitality && Config.ENABLE_VITALITY)
 		{
 			switch (_vitalityLevel)
 			{
@@ -494,7 +494,7 @@ public class PcStat extends PlayableStat
 
     public void updateVitalityPoints(float points, boolean useRates, boolean quiet)
     {
-    	if (points == 0)
+    	if (points == 0 || !Config.ENABLE_VITALITY)
     		return;
 
     	if (useRates)