Adjust the critical range for shields to destroy projectiles

This commit is contained in:
Sollace 2019-03-05 16:09:02 +02:00
parent 584704c8e3
commit 5f93eb6ac6

View file

@ -116,7 +116,7 @@ public class SpellShield extends AbstractSpell.RangedAreaSpell implements IAttac
if (ProjectileUtil.isProjectile(target)) { if (ProjectileUtil.isProjectile(target)) {
if (!ProjectileUtil.isProjectileThrownBy(target, source.getOwner())) { if (!ProjectileUtil.isProjectileThrownBy(target, source.getOwner())) {
if (distance < radius/2) { if (distance < 1) {
target.playSound(SoundEvents.ENTITY_ZOMBIE_VILLAGER_CURE, 0.1F, 1); target.playSound(SoundEvents.ENTITY_ZOMBIE_VILLAGER_CURE, 0.1F, 1);
target.setDead(); target.setDead();
} else { } else {