Messed up the commit history, so here is all the files rip, Credit to TrinityCore
This commit is contained in:
@@ -38,6 +38,16 @@ namespace Game
|
||||
if (v.Value != PlayerSpellState.Removed)
|
||||
inspectResult.Talents.Add((ushort)v.Key);
|
||||
}
|
||||
|
||||
var pvpTalents = player.GetPvpTalentMap(player.GetActiveTalentGroup());
|
||||
for (int i = 0; i < pvpTalents.Length; ++i)
|
||||
inspectResult.PvpTalents[i] = (ushort)pvpTalents[i];
|
||||
|
||||
inspectResult.TalentTraits.Level = (int)player.GetLevel();
|
||||
inspectResult.TalentTraits.ChrSpecializationID = (int)player.GetPrimarySpecialization();
|
||||
TraitConfig traitConfig = player.GetTraitConfig((int)(uint)player.m_activePlayerData.ActiveCombatTraitConfigID);
|
||||
if (traitConfig != null)
|
||||
inspectResult.TalentTraits.Config = new TraitConfigPacket(traitConfig);
|
||||
}
|
||||
|
||||
Guild guild = Global.GuildMgr.GetGuildById(player.GetGuildId());
|
||||
|
||||
Reference in New Issue
Block a user