Fix comment and big name

This commit is contained in:
EricksOliveira 2025-09-14 18:37:47 -03:00
parent 596a8e48f0
commit 3e5ecc37be
3 changed files with 3 additions and 4 deletions

View File

@ -2886,7 +2886,7 @@ void Player::SendUnlearnSpells()
SendDirectMessage(&data);
}
bool Player::IsUnlearnSpellsPacketNeededForSpell(uint32 spellId)
bool Player::IsUnlearnNeededForSpell(uint32 spellId)
{
SpellInfo const* spellInfo = sSpellMgr->AssertSpellInfo(spellId);
if (spellInfo->IsRanked() && !spellInfo->IsStackableWithRanks())

View File

@ -1657,7 +1657,7 @@ public:
void AddNewMailDeliverTime(time_t deliver_time);
void SendUnlearnSpells();
static bool IsUnlearnSpellsPacketNeededForSpell(uint32 spellId);
static bool IsUnlearnNeededForSpell(uint32 spellId);
void RemoveMail(uint32 id);

View File

@ -264,8 +264,7 @@ void WorldSession::HandleTrainerBuySpellOpcode(WorldPacket& recvData)
else
_player->learnSpell(spellId);
// Send "unlearn" packet only if necessary
if (Player::IsUnlearnSpellsPacketNeededForSpell(spellId))
if (Player::IsUnlearnNeededForSpell(spellId))
_player->SendUnlearnSpells();
WorldPacket data(SMSG_TRAINER_BUY_SUCCEEDED, 12);