From 5bb4d816db1ee4af1f26b8fc0596344193833790 Mon Sep 17 00:00:00 2001 From: benjymansy123 Date: Sun, 26 Nov 2023 18:48:40 -0500 Subject: [PATCH] Add involuntary talent reset message on spell learning. --- src/ptr_template.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ptr_template.cpp b/src/ptr_template.cpp index 14f223d..2f91c31 100644 --- a/src/ptr_template.cpp +++ b/src/ptr_template.cpp @@ -708,6 +708,9 @@ class createTemplate : public PlayerScript { player->learnSpell(spellEntry); LOG_DEBUG("module", "Added spell {} to template character {}.", spellEntry, player->GetGUID().ToString()); } while (spellInfo->NextRow()); + WorldPacket data(SMSG_TALENTS_INVOLUNTARILY_RESET, 1); // todo: put this in header and get it out of my gosh darn face + data << uint8(0); + player->SendMessageToSet(&data, true); } }