Adds more packet tests (#166)

This commit is contained in:
Kamron Batman 2020-07-03 19:03:10 -07:00 • committed by GitHub
parent ee06eb4407
commit e17195ca80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 1203 additions and 277 deletions

View file

@ -603,30 +603,30 @@ namespace Server.Items
}
if (ns.HighSeas)
to.Send(new DisplaySpellbookHS(this));
to.Send(new DisplaySpellbookHS(Serial));
else
to.Send(new DisplaySpellbook(this));
to.Send(new DisplaySpellbook(Serial));
if (ObjectPropertyList.Enabled)
{
if (ns.NewSpellbook)
{
to.Send(new NewSpellbookContent(this, ItemID, BookOffset + 1, m_Content));
to.Send(new NewSpellbookContent(Serial, ItemID, BookOffset + 1, m_Content));
}
else
{
if (ns.ContainerGridLines)
to.Send(new SpellbookContent6017(SpellCount, BookOffset + 1, m_Content, this));
to.Send(new SpellbookContent6017(Serial, BookOffset + 1, m_Content));
else
to.Send(new SpellbookContent(SpellCount, BookOffset + 1, m_Content, this));
to.Send(new SpellbookContent(Serial, BookOffset + 1, m_Content));
}
}
else
{
if (ns.ContainerGridLines)
to.Send(new SpellbookContent6017(SpellCount, BookOffset + 1, m_Content, this));
to.Send(new SpellbookContent6017(Serial, BookOffset + 1, m_Content));
else
to.Send(new SpellbookContent(SpellCount, BookOffset + 1, m_Content, this));
to.Send(new SpellbookContent(Serial, BookOffset + 1, m_Content));
}
}