Prevent Hyeleth's amulet from casting the shield spell from a scroll, fixes #680

This commit is contained in:
Electroblob77
2021-06-20 23:44:04 +01:00
parent 8fd1de84e4
commit ca7f1cc8ca
@@ -344,6 +344,8 @@ public class ItemArtefact extends Item {
findMatchingWandAndExecute(player, Spells.shield, wand -> {
if(wand.getItem() instanceof ItemScroll) return; // Ignore scrolls since they shouldn't work
List<Entity> projectiles = EntityUtils.getEntitiesWithinRadius(5, player.posX, player.posY, player.posZ, world, Entity.class);
projectiles.removeIf(e -> !(e instanceof IProjectile));
Vec3d look = player.getLookVec();