mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47:59 +01:00
Adjust the critical range for shields to destroy projectiles
This commit is contained in:
parent
584704c8e3
commit
5f93eb6ac6
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue