From 8460fcc8f6274acd01f99d5476fe16b52e356dea Mon Sep 17 00:00:00 2001 From: Jonathan Williams Date: Wed, 9 Apr 2014 02:50:37 -0700 Subject: [PATCH] Added ninja check for bow charge if you just right click quickly. --- .../minecraft/game/classcombat/Skill/SkillChargeBow.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Plugins/Mineplex.Minecraft.Game.ClassCombat/src/mineplex/minecraft/game/classcombat/Skill/SkillChargeBow.java b/Plugins/Mineplex.Minecraft.Game.ClassCombat/src/mineplex/minecraft/game/classcombat/Skill/SkillChargeBow.java index 02f2797d8..d82d5ad49 100644 --- a/Plugins/Mineplex.Minecraft.Game.ClassCombat/src/mineplex/minecraft/game/classcombat/Skill/SkillChargeBow.java +++ b/Plugins/Mineplex.Minecraft.Game.ClassCombat/src/mineplex/minecraft/game/classcombat/Skill/SkillChargeBow.java @@ -12,6 +12,7 @@ import mineplex.core.updater.event.UpdateEvent; import mineplex.minecraft.game.classcombat.Class.IPvpClass.ClassType; import org.bukkit.Material; +import org.bukkit.craftbukkit.v1_7_R1.entity.CraftEntity; import org.bukkit.entity.Arrow; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; @@ -93,6 +94,10 @@ public abstract class SkillChargeBow extends SkillCharge implements Listener continue; } + // Client sends a packet when you stop charging a bow and sets this datawatcher value. + if ((((CraftEntity)cur).getHandle().getDataWatcher().getByte(0) & 1 << 4) == 0) + continue; + //Flags if (!_canChargeInAir && !UtilEnt.isGrounded(cur)) continue;