Jelajahi Sumber

Rolling back DEATHLINK old power formula. Logarithm based formula still need some fixes.
Thanks to Meekzwetz and eNaNiLLo for reporting.

DrHouse 16 tahun lalu
induk
melakukan
8aa0f70cd1

+ 6 - 0
L2_GameServer/java/net/sf/l2j/gameserver/model/L2Skill.java

@@ -618,10 +618,16 @@ public abstract class L2Skill
     	{
     		case DEATHLINK:
     		{
+    			return _power * Math.pow(1.7165 - activeChar.getCurrentHp() / activeChar.getMaxHp(), 2) * 0.577; 
+    			/*
+    			 * DrHouse:
+    			 * Rolling back to old formula (look below) for DEATHLINK due to this one based on logarithm is not
+    			 * accurate enough. Commented here because probably is a matter of just adjusting a constant
     			if(activeChar.getCurrentHp() / activeChar.getMaxHp() > 0.005)
             		return _power*(-0.45*Math.log(activeChar.getCurrentHp()/activeChar.getMaxHp())+1.);
             	else
             		return _power*(-0.45*Math.log(0.005)+1.);
+            	*/
     		}
     		case FATAL:
     		{