feat: Soulwalker's Ring only soulbounds an entity for 20 seconds

This commit is contained in:
WinDanesz
2022-07-08 19:20:16 +02:00
parent d23c4cba18
commit cc1c951ef8
2 changed files with 2 additions and 1 deletions
@@ -769,6 +769,7 @@ public class ItemArtefact extends Item {
&& Streams.stream(player.getHeldEquipment()).anyMatch(s -> s.getItem() instanceof ISpellCastingItem
&& ((ISpellCastingItem)s.getItem()).getCurrentSpell(s).getElement() == Element.NECROMANCY))){
event.getEntityLiving().addPotionEffect(new PotionEffect(WizardryPotions.curse_of_soulbinding, 400));
CurseOfSoulbinding.getSoulboundCreatures(WizardData.get(player)).add(event.getEntity().getUniqueID());
}