mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47:59 +01:00
Fixed the focused/unfocused forms of magic missile (whoops)
This commit is contained in:
parent
b43ed1975b
commit
615e4c3788
1 changed files with 2 additions and 3 deletions
|
@ -102,7 +102,7 @@ public class ShieldSpell extends AbstractRangedAreaSpell implements Attached {
|
||||||
|
|
||||||
Entity owner = source.getMaster();
|
Entity owner = source.getMaster();
|
||||||
|
|
||||||
boolean ownerIsValid = source.getAffinity() != Affinity.BAD && EquinePredicates.PLAYER_UNICORN.test(owner);
|
boolean ownerIsValid = source.getAffinity() != Affinity.BAD && (EquinePredicates.PLAYER_UNICORN.test(owner) && owner.isSneaking());
|
||||||
|
|
||||||
return source.findAllEntitiesInRange(radius)
|
return source.findAllEntitiesInRange(radius)
|
||||||
.filter(entity -> {
|
.filter(entity -> {
|
||||||
|
@ -115,8 +115,7 @@ public class ShieldSpell extends AbstractRangedAreaSpell implements Attached {
|
||||||
|| ProjectileUtil.isFlyingProjectile(entity)
|
|| ProjectileUtil.isFlyingProjectile(entity)
|
||||||
|| entity instanceof AbstractMinecartEntity)
|
|| entity instanceof AbstractMinecartEntity)
|
||||||
&& !(entity instanceof ArmorStandEntity)
|
&& !(entity instanceof ArmorStandEntity)
|
||||||
&& !(owner.isConnectedThroughVehicle(entity))
|
&& !(ownerIsValid && (Pony.equal(entity, owner) || owner.isConnectedThroughVehicle(entity)));
|
||||||
&& !(ownerIsValid && Pony.equal(entity, owner));
|
|
||||||
})
|
})
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue