mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
fix(Core/Items): properly display item spell charges (#7722)
- Closes #7598
This commit is contained in:
@@ -426,7 +426,7 @@ void ItemTemplate::InitializeQueryData()
|
||||
|
||||
queryData << Spells[s].SpellId;
|
||||
queryData << Spells[s].SpellTrigger;
|
||||
queryData << uint32(-abs(Spells[s].SpellCharges));
|
||||
queryData << int32(Spells[s].SpellCharges);
|
||||
|
||||
if (db_data)
|
||||
{
|
||||
@@ -577,7 +577,7 @@ void WorldSession::HandleItemQuerySingleOpcode(WorldPacket& recvData)
|
||||
|
||||
queryData << pProto->Spells[s].SpellId;
|
||||
queryData << pProto->Spells[s].SpellTrigger;
|
||||
queryData << uint32(-abs(pProto->Spells[s].SpellCharges));
|
||||
queryData << int32(pProto->Spells[s].SpellCharges);
|
||||
|
||||
if (db_data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user