feat: disable invuln for plugin damage + DamageUtil + DiamondTri/Barrage/Overhead nerf
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user