From 07195dc6c366229b69c83515d191bc21abdf7e06 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Tue, 7 Nov 2017 22:54:11 +0000 Subject: [PATCH] Reuse check for KnockBack effect chains. --- .../game/data/scripts/handlers/effecthandlers/KnockBack.java | 5 ++++- .../game/data/scripts/handlers/effecthandlers/KnockBack.java | 5 ++++- .../game/data/scripts/handlers/effecthandlers/KnockBack.java | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/KnockBack.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/KnockBack.java index c7be363c4e..f6fa9dc43e 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/KnockBack.java +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/KnockBack.java @@ -176,7 +176,10 @@ public final class KnockBack extends AbstractEffect if ((nearbyPlayer.getTarget() == effected) && nearbyPlayer.isInCategory(CategoryType.AWAKEN_GROUP) && !nearbyPlayer.isAlterSkillActive()) { final int chainSkill = _chainKnockSkills.get(nearbyPlayer.getClassId()); - nearbyPlayer.sendPacket(new ExAlterSkillRequest(nearbyPlayer, chainSkill, chainSkill, 3)); + if (nearbyPlayer.getSkillRemainingReuseTime(chainSkill) == -1) + { + nearbyPlayer.sendPacket(new ExAlterSkillRequest(nearbyPlayer, chainSkill, chainSkill, 3)); + } } } } diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/KnockBack.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/KnockBack.java index c7be363c4e..f6fa9dc43e 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/KnockBack.java +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/KnockBack.java @@ -176,7 +176,10 @@ public final class KnockBack extends AbstractEffect if ((nearbyPlayer.getTarget() == effected) && nearbyPlayer.isInCategory(CategoryType.AWAKEN_GROUP) && !nearbyPlayer.isAlterSkillActive()) { final int chainSkill = _chainKnockSkills.get(nearbyPlayer.getClassId()); - nearbyPlayer.sendPacket(new ExAlterSkillRequest(nearbyPlayer, chainSkill, chainSkill, 3)); + if (nearbyPlayer.getSkillRemainingReuseTime(chainSkill) == -1) + { + nearbyPlayer.sendPacket(new ExAlterSkillRequest(nearbyPlayer, chainSkill, chainSkill, 3)); + } } } } diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/KnockBack.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/KnockBack.java index c7be363c4e..f6fa9dc43e 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/KnockBack.java +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/KnockBack.java @@ -176,7 +176,10 @@ public final class KnockBack extends AbstractEffect if ((nearbyPlayer.getTarget() == effected) && nearbyPlayer.isInCategory(CategoryType.AWAKEN_GROUP) && !nearbyPlayer.isAlterSkillActive()) { final int chainSkill = _chainKnockSkills.get(nearbyPlayer.getClassId()); - nearbyPlayer.sendPacket(new ExAlterSkillRequest(nearbyPlayer, chainSkill, chainSkill, 3)); + if (nearbyPlayer.getSkillRemainingReuseTime(chainSkill) == -1) + { + nearbyPlayer.sendPacket(new ExAlterSkillRequest(nearbyPlayer, chainSkill, chainSkill, 3)); + } } } }