mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Core/PacketIO: Updated to 11.0.0
This commit is contained in:
@@ -1545,7 +1545,7 @@ public:
|
||||
|
||||
static bool HandleBankCommand(ChatHandler* handler)
|
||||
{
|
||||
handler->GetSession()->SendShowBank(handler->GetSession()->GetPlayer()->GetGUID());
|
||||
handler->GetSession()->SendShowBank(handler->GetSession()->GetPlayer()->GetGUID(), PlayerInteractionType::Banker);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -225,7 +225,7 @@ public:
|
||||
flag = target->m_unitData->Flags;
|
||||
|
||||
if (!npcflag)
|
||||
memcpy(&npcflag.emplace(), target->m_unitData->NpcFlags.begin(), sizeof(uint64));
|
||||
npcflag = (uint64(target->GetNpcFlags2()) << 32) | target->GetNpcFlags();
|
||||
|
||||
if (!dyflag)
|
||||
dyflag = target->m_objectData->DynamicFlags;
|
||||
|
||||
@@ -480,8 +480,7 @@ public:
|
||||
CreatureTemplate const* cInfo = target->GetCreatureTemplate();
|
||||
|
||||
uint32 faction = target->GetFaction();
|
||||
uint64 npcflags;
|
||||
memcpy(&npcflags, target->m_unitData->NpcFlags.begin(), sizeof(npcflags));
|
||||
uint64 npcflags = (uint64(target->GetNpcFlags2()) << 32) | target->GetNpcFlags();
|
||||
uint64 mechanicImmuneMask = 0;
|
||||
if (CreatureImmunities const* immunities = SpellMgr::GetCreatureImmunities(cInfo->CreatureImmunitiesId))
|
||||
mechanicImmuneMask = immunities->Mechanic.to_ullong();
|
||||
@@ -550,7 +549,7 @@ public:
|
||||
if (cInfo->flags_extra & flag)
|
||||
handler->PSendSysMessage("%s (0x%X)", EnumUtils::ToTitle(flag), flag);
|
||||
|
||||
handler->PSendSysMessage(LANG_NPCINFO_NPC_FLAGS, target->m_unitData->NpcFlags[0]);
|
||||
handler->PSendSysMessage(LANG_NPCINFO_NPC_FLAGS, uint32(target->GetNpcFlags()));
|
||||
for (NPCFlags flag : EnumUtils::Iterate<NPCFlags>())
|
||||
if (target->HasNpcFlag(flag))
|
||||
handler->PSendSysMessage("* %s (0x%X)", EnumUtils::ToTitle(flag), flag);
|
||||
|
||||
Reference in New Issue
Block a user