fix: Fixes dropping a stack of scrolls on a spellbook (#2248)
This commit is contained in:
parent
52e309ef95
commit
bbb7dc2294
1 changed files with 3 additions and 3 deletions
|
|
@ -497,7 +497,7 @@ public partial class Spellbook : Item, ICraftable, ISlayer, IAosItem
|
|||
|
||||
public override bool OnDragDrop(Mobile from, Item dropped)
|
||||
{
|
||||
if (dropped is not SpellScroll { Amount: 1 } scroll)
|
||||
if (dropped is not SpellScroll scroll)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
@ -524,10 +524,10 @@ public partial class Spellbook : Item, ICraftable, ISlayer, IAosItem
|
|||
|
||||
InvalidateProperties();
|
||||
|
||||
scroll.Delete();
|
||||
scroll.Consume();
|
||||
|
||||
from.SendSound(0x249, GetWorldLocation());
|
||||
return true;
|
||||
return scroll.Deleted;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue