Skip to content
Snippets Groups Projects
Commit bac564b5 authored by MELERIX's avatar MELERIX
Browse files

BETA: DP-Part for [L5672].

parent 55962dbe
No related branches found
No related tags found
No related merge requests found
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
<classpathentry kind="lib" path="/L2J_Server_BETA/dist/libs/mmocore.jar" /> <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="lib" path="/L2J_Server_BETA/dist/libs/netcon-1.7.jar" />
<classpathentry kind="output" path="bin" /> <classpathentry kind="output" path="bin" />
</classpath> </classpath>
\ No newline at end of file
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
*/ */
package handlers.effecthandlers; package handlers.effecthandlers;
import com.l2jserver.Config;
import com.l2jserver.gameserver.model.actor.L2Character; import com.l2jserver.gameserver.model.actor.L2Character;
import com.l2jserver.gameserver.model.effects.EffectTemplate; import com.l2jserver.gameserver.model.effects.EffectTemplate;
import com.l2jserver.gameserver.model.effects.L2Effect; import com.l2jserver.gameserver.model.effects.L2Effect;
...@@ -107,13 +108,13 @@ public class CancelDebuff extends L2Effect ...@@ -107,13 +108,13 @@ public class CancelDebuff extends L2Effect
rate += (effect.getAbnormalTime() - effect.getTime()) / 1200; rate += (effect.getAbnormalTime() - effect.getTime()) / 1200;
rate += baseRate; 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; return Rnd.get(100) < rate;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment