diff --git a/src/main/java/com/rammelkast/anticheatreloaded/check/combat/KillAuraCheck.java b/src/main/java/com/rammelkast/anticheatreloaded/check/combat/KillAuraCheck.java index f058160c..dbd169f1 100644 --- a/src/main/java/com/rammelkast/anticheatreloaded/check/combat/KillAuraCheck.java +++ b/src/main/java/com/rammelkast/anticheatreloaded/check/combat/KillAuraCheck.java @@ -30,6 +30,7 @@ import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.util.Vector; +import com.cryptomorin.xseries.XMaterial; import com.rammelkast.anticheatreloaded.AntiCheatReloaded; import com.rammelkast.anticheatreloaded.check.CheckResult; import com.rammelkast.anticheatreloaded.check.CheckType; @@ -96,17 +97,18 @@ public static CheckResult checkReach(final Player player, final Entity target) { public static CheckResult checkAngle(final Player player, final EntityDamageEvent event) { final UUID uuid = player.getUniqueId(); final Entity entity = event.getEntity(); + + // Do not check while in vehicles + if (player.getVehicle() != null || entity.getVehicle() != null || player.getItemInUse() == XMaterial.TRIDENT.parseItem()) { + return PASS; + } + final Checks checksConfig = AntiCheatReloaded.getManager().getConfiguration().getChecks(); // Check if enabled if (!checksConfig.isSubcheckEnabled(CheckType.KILLAURA, "angle")) { return PASS; } - - // Do not check while in vehicles - if (player.getVehicle() != null || entity.getVehicle() != null) { - return PASS; - } if (entity instanceof LivingEntity) { final LivingEntity living = (LivingEntity) entity;