Core/Players: Don't remove unlearned spells from action bars

Port From (https://github.com/TrinityCore/TrinityCore/commit/9be60f240960f6538329b5e017f435c6237a89ea)
This commit is contained in:
hondacrx
2022-12-28 15:37:50 -05:00
parent c7a63abd39
commit 0bfc448595
-6
View File
@@ -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)