fix: Fixed wizards not using addon book spells

This commit is contained in:
WinDanesz
2022-07-11 21:14:45 +02:00
parent 8e9c270b77
commit 5bf4650da1
@@ -798,7 +798,6 @@ public class EntityWizard extends EntityCreature implements INpc, IMerchant, ISp
Tier maxTier = Tier.NOVICE;
List<Spell> npcSpells = Spell.getSpells(s -> s.canBeCastBy(wizard, false));
npcSpells.removeIf(s -> !s.applicableForItem(WizardryItems.spell_book));
for(int i = 0; i < n; i++){