diff --git a/src/main/java/io/redspace/ironsspellbooks/effect/EvasionEffect.java b/src/main/java/io/redspace/ironsspellbooks/effect/EvasionEffect.java index 343de7e5b..e95e4469f 100644 --- a/src/main/java/io/redspace/ironsspellbooks/effect/EvasionEffect.java +++ b/src/main/java/io/redspace/ironsspellbooks/effect/EvasionEffect.java @@ -62,7 +62,7 @@ public static boolean doEffect(LivingEntity livingEntity, DamageSource damageSou double d0 = livingEntity.getX(); double d1 = livingEntity.getY(); double d2 = livingEntity.getZ(); - double maxRadius = 18d; + double maxRadius = 12d; var level = livingEntity.level; var random = livingEntity.getRandom(); @@ -70,7 +70,7 @@ public static boolean doEffect(LivingEntity livingEntity, DamageSource damageSou var minRadius = maxRadius / 2; Vec3 vec = new Vec3((double) random.nextInt((int) minRadius, (int) maxRadius), 0, 0); int degrees = random.nextInt(360); - vec = vec.yRot(degrees); + vec = vec.yRot(degrees*Mth.DEG_TO_RAD); double x = d0 + vec.x; double y = Mth.clamp(livingEntity.getY() + (double) (livingEntity.getRandom().nextInt((int) maxRadius) - maxRadius / 2), (double) level.getMinBuildHeight(), (double) (level.getMinBuildHeight() + ((ServerLevel) level).getLogicalHeight() - 1));