From 0bfc4485957ab5c2a6eeeae600c7f09c3c87f42e Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 28 Dec 2022 15:37:50 -0500 Subject: [PATCH] Core/Players: Don't remove unlearned spells from action bars Port From (https://github.com/TrinityCore/TrinityCore/commit/9be60f240960f6538329b5e017f435c6237a89ea) --- Source/Game/Entities/Player/Player.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Source/Game/Entities/Player/Player.cs b/Source/Game/Entities/Player/Player.cs index 36ae5c947..7884608ab 100644 --- a/Source/Game/Entities/Player/Player.cs +++ b/Source/Game/Entities/Player/Player.cs @@ -1327,12 +1327,6 @@ namespace Game.Entities Log.outError(LogFilter.Player, $"Player::IsActionButtonDataValid: Spell action {action} not added into button {button} for player {GetName()} ({GetGUID()}): spell not exist"); return false; } - - if (!HasSpell((uint)action)) - { - Log.outError(LogFilter.Player, $"Player::IsActionButtonDataValid: Spell action {action} not added into button {button} for player {GetName()} ({GetGUID()}): player don't known this spell"); - return false; - } break; case ActionButtonType.Item: if (Global.ObjectMgr.GetItemTemplate((uint)action) == null)