瀏覽代碼

Disable vitality fix, thanks jiv for report.

_DS_ 15 年之前
父節點
當前提交
445a8e2132
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      L2_GameServer/java/net/sf/l2j/gameserver/model/actor/stat/PcStat.java

+ 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)