From bac564b54a9726a85a1f4ac24632bc43587b6795 Mon Sep 17 00:00:00 2001
From: MELERIX <MELERIX@users.noreply.github.com>
Date: Thu, 11 Oct 2012 03:25:36 +0000
Subject: [PATCH] BETA: DP-Part for [L5672].

---
 L2J_DataPack_BETA/.classpath                             | 2 +-
 .../scripts/handlers/effecthandlers/CancelDebuff.java    | 9 +++++----
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/L2J_DataPack_BETA/.classpath b/L2J_DataPack_BETA/.classpath
index 4217ca9b40..7c2800af4e 100644
--- a/L2J_DataPack_BETA/.classpath
+++ b/L2J_DataPack_BETA/.classpath
@@ -7,4 +7,4 @@
 	<classpathentry kind="lib" path="/L2J_Server_BETA/dist/libs/mmocore.jar" />
 	<classpathentry kind="lib" path="/L2J_Server_BETA/dist/libs/netcon-1.7.jar" />
 	<classpathentry kind="output" path="bin" />
-</classpath>
+</classpath>
\ No newline at end of file
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/handlers/effecthandlers/CancelDebuff.java b/L2J_DataPack_BETA/dist/game/data/scripts/handlers/effecthandlers/CancelDebuff.java
index b16059d1f6..9a2345b4a5 100644
--- a/L2J_DataPack_BETA/dist/game/data/scripts/handlers/effecthandlers/CancelDebuff.java
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/handlers/effecthandlers/CancelDebuff.java
@@ -14,6 +14,7 @@
  */
 package handlers.effecthandlers;
 
+import com.l2jserver.Config;
 import com.l2jserver.gameserver.model.actor.L2Character;
 import com.l2jserver.gameserver.model.effects.EffectTemplate;
 import com.l2jserver.gameserver.model.effects.L2Effect;
@@ -107,13 +108,13 @@ public class CancelDebuff extends L2Effect
 		rate += (effect.getAbnormalTime() - effect.getTime()) / 1200;
 		rate += baseRate;
 		
-		if (rate < effect.getSkill().getMinChance())
+		if (rate < Config.MIN_DEBUFF_CHANCE)
 		{
-			rate = effect.getSkill().getMinChance();
+			rate = Config.MIN_DEBUFF_CHANCE;
 		}
-		else if (rate > effect.getSkill().getMaxChance())
+		else if (rate > Config.MAX_DEBUFF_CHANCE)
 		{
-			rate = effect.getSkill().getMaxChance();
+			rate = Config.MAX_DEBUFF_CHANCE;
 		}
 		
 		return Rnd.get(100) < rate;
-- 
GitLab