feat: disable invuln for plugin damage + DamageUtil + DiamondTri/Barrage/Overhead nerf

This commit is contained in:
SashegDev
2026-08-28 14:17:21 +03:00
parent a8ce2375c0
commit e227ad63bd
8 changed files with 244 additions and 21 deletions
@@ -70,8 +70,7 @@ public class SwordAttack {
marker.teleport(nl);
for (var ent : nl.getWorld().getNearbyEntities(nl, 0.7, 0.7, 0.7, e -> e instanceof LivingEntity && e != p)) {
LivingEntity le = (LivingEntity) ent;
le.getPersistentDataContainer().set(SwoonHandler.MAGIC_DAMAGE, PersistentDataType.BYTE, (byte) 1);
le.damage(15.0, p);
DamageUtil.apply(p, le, 15.0);
Location hit = le.getLocation().add(0, 1, 0);
for (int k = 0; k < 12; k++) {
double a = (double) k / 12 * Math.PI * 2;