From 9be60f240960f6538329b5e017f435c6237a89ea Mon Sep 17 00:00:00 2001 From: Shauren Date: Thu, 15 Dec 2022 14:19:54 +0100 Subject: Core/Players: Don't remove unlearned spells from action bars --- src/server/game/Entities/Player/Player.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/server') diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index c49dc685bc0..ad5e1d2a632 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -6021,13 +6021,6 @@ bool Player::IsActionButtonDataValid(uint8 button, uint64 action, uint8 type) co action, button, GetName().c_str(), GetGUID().ToString().c_str()); return false; } - - if (!HasSpell(action)) - { - TC_LOG_DEBUG("entities.player", "Player::IsActionButtonDataValid: Spell action " UI64FMTD " not added into button %u for player %s (%s): player does not known this spell, this can be due to a player changing their talents", - action, button, GetName().c_str(), GetGUID().ToString().c_str()); - return false; - } break; case ACTION_BUTTON_ITEM: if (!sObjectMgr->GetItemTemplate(action)) @@ -6049,7 +6042,7 @@ bool Player::IsActionButtonDataValid(uint8 button, uint64 action, uint8 type) co } case ACTION_BUTTON_MOUNT: { - auto mount = sDB2Manager.GetMountById(action); + MountEntry const* mount = sDB2Manager.GetMountById(action); if (!mount) { TC_LOG_ERROR("entities.player", "Player::IsActionButtonDataValid: Mount action " UI64FMTD " not added into button %u for player %s (%s): mount does not exist", -- cgit v1.2.3