ソースを参照

Fixed calcCubicSkillSuccess formula.

Adry85 7 年 前
コミット
3972484ae3

+ 3 - 10
src/main/java/com/l2jserver/gameserver/model/stats/Formulas.java

@@ -1468,16 +1468,9 @@ public final class Formulas
 	
 	public static boolean calcCubicSkillSuccess(L2CubicInstance attacker, L2Character target, Skill skill, byte shld)
 	{
-		if (skill.isDebuff())
+		if (skill.isDebuff() && target.isDebuffBlocked())
 		{
-			if (skill.getPower() == -1)
-			{
-				return true;
-			}
-			else if (target.isDebuffBlocked())
-			{
-				return false;
-			}
+			return false;
 		}
 		
 		// Perfect Shield Block.
@@ -1493,7 +1486,7 @@ public final class Formulas
 		}
 		
 		// Calculate BaseRate.
-		double baseRate = skill.getPower();
+		double baseRate = skill.getActivateRate();
 		double statMod = skill.getBasicProperty().calcBonus(target);
 		double rate = (baseRate / statMod);