Core/PacketIO: Updated to 11.0.0
Port From (https://github.com/TrinityCore/TrinityCore/commit/e59eef5432c7b70679d33f4911c88d0f7d75fd39)
This commit is contained in:
@@ -145,7 +145,7 @@ namespace Game.Chat
|
||||
[CommandNonGroup("bank", RBACPermissions.CommandBank)]
|
||||
static bool HandleBankCommand(CommandHandler handler)
|
||||
{
|
||||
handler.GetSession().SendShowBank(handler.GetSession().GetPlayer().GetGUID());
|
||||
handler.GetSession().SendShowBank(handler.GetSession().GetPlayer().GetGUID(), PlayerInteractionType.Banker);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ namespace Game.Chat
|
||||
flag = target.m_unitData.Flags;
|
||||
|
||||
if (!npcflag.HasValue)
|
||||
npcflag = (ulong)target.m_unitData.NpcFlags[0] << 32 | target.m_unitData.NpcFlags[1];
|
||||
npcflag = (ulong)target.m_unitData.NpcFlags2 << 32 | target.m_unitData.NpcFlags;
|
||||
|
||||
if (!dyflag.HasValue)
|
||||
dyflag = target.m_objectData.DynamicFlags;
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace Game.Chat
|
||||
CreatureTemplate cInfo = target.GetCreatureTemplate();
|
||||
|
||||
uint faction = target.GetFaction();
|
||||
ulong npcflags = (ulong)target.m_unitData.NpcFlags[1] << 32 | target.m_unitData.NpcFlags[0];
|
||||
ulong npcflags = (ulong)target.m_unitData.NpcFlags2 << 32 | target.m_unitData.NpcFlags;
|
||||
ulong mechanicImmuneMask = 0;
|
||||
CreatureImmunities immunities = Global.SpellMgr.GetCreatureImmunities(cInfo.CreatureImmunitiesId);
|
||||
if (immunities != null)
|
||||
@@ -151,7 +151,7 @@ namespace Game.Chat
|
||||
if (cInfo.FlagsExtra.HasAnyFlag((CreatureFlagsExtra)value))
|
||||
handler.SendSysMessage("{0} (0x{1:X})", (CreatureFlagsExtra)value, value);
|
||||
|
||||
handler.SendSysMessage(CypherStrings.NpcinfoNpcFlags, target.m_unitData.NpcFlags[0]);
|
||||
handler.SendSysMessage(CypherStrings.NpcinfoNpcFlags, target.m_unitData.NpcFlags);
|
||||
foreach (uint value in Enum.GetValues(typeof(NPCFlags)))
|
||||
if (npcflags.HasAnyFlag(value))
|
||||
handler.SendSysMessage("{0} (0x{1:X})", (NPCFlags)value, value);
|
||||
|
||||
Reference in New Issue
Block a user