mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-11-10 12:24:22 +08:00
Fix comment and big name
This commit is contained in:
parent
596a8e48f0
commit
3e5ecc37be
@ -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())
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user