Misc: Handle CMSG_CLOSE_TRAIT_SYSTEM_INTERACTION / CMSG_CLOSE_RUNEFORGE_INTERACTION

This commit is contained in:
luis
2026-07-08 20:04:47 -03:00
parent 0349ab398f
commit b6facc6763
5 changed files with 24 additions and 4 deletions
+8
View File
@@ -1520,3 +1520,11 @@ void WorldSession::HandleMountClearFanfare(WorldPackets::Misc::MountClearFanfare
{
_collectionMgr->MountClearFanfare(mountClearFanfare.MountSpellID);
}
void WorldSession::HandleCloseTraitSystemInteraction(WorldPackets::Misc::CloseTraitSystemInteraction& /*closeTraitSystemInteraction*/)
{
// Empty-payload notification that the client dismissed the trait/talent window opened
// via a TraitSystem gossip option (see Player::OnGossipSelect -> StartInteraction).
if (_player->PlayerTalkClass->GetInteractionData().Type == PlayerInteractionType::TraitSystem)
_player->PlayerTalkClass->GetInteractionData().Reset();
}