Added ninja check for bow charge if you just right click quickly.

This commit is contained in:
Jonathan Williams 2014-04-09 02:50:37 -07:00
parent e4ca9084cc
commit 8460fcc8f6

View File

@ -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;