Core/Packets: remove no longer needed check from learn preview talents packet handler

This commit is contained in:
Ovahlord committed 2025-06-16 21:07:56 +02:00
1 parent c092c6ad00
commit c7f5cffad3
1 file changed
-6
@@ -42,12 +42,6 @@ void WorldSession::HandleLearnPreviewTalents(WorldPackets::Talent::LearnPreviewT
if (!_player->LearnPrimaryTalentSpecialization(packet.TalentTab))
return;
// prevent cheating (selecting new tree with points already in another)
if (packet.TalentTab >= 0) // -1 if player already has specialization
if (TalentTabEntry const* talentTabEntry = sTalentTabStore.LookupEntry(_player->GetPrimaryTalentTree(_player->GetActiveSpec())))
if (talentTabEntry->OrderIndex != static_cast<uint32>(packet.TalentTab))
return;
for (WorldPackets::Talent::TalentInfo const& talent : packet.Talents)
if (!_player->LearnTalent(talent.TalentID, talent.Rank))
break;