fix: Fixes dropping a stack of scrolls on a spellbook (#2248)

This commit is contained in:
Kamron Batman 2025-08-09 20:55:36 -07:00 • committed by GitHub
parent 52e309ef95
commit bbb7dc2294
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -497,7 +497,7 @@ public partial class Spellbook : Item, ICraftable, ISlayer, IAosItem
public override bool OnDragDrop(Mobile from, Item dropped) public override bool OnDragDrop(Mobile from, Item dropped)
{ {
if (dropped is not SpellScroll { Amount: 1 } scroll) if (dropped is not SpellScroll scroll)
{ {
return false; return false;
} }
@ -524,10 +524,10 @@ public partial class Spellbook : Item, ICraftable, ISlayer, IAosItem
InvalidateProperties(); InvalidateProperties();
scroll.Delete(); scroll.Consume();
from.SendSound(0x249, GetWorldLocation()); from.SendSound(0x249, GetWorldLocation());
return true; return scroll.Deleted;
} }
return false; return false;