Core/Players: Don't remove unlearned spells from action bars
Port From (https://github.com/TrinityCore/TrinityCore/commit/9be60f240960f6538329b5e017f435c6237a89ea)
This commit is contained in:
@@ -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");
|
Log.outError(LogFilter.Player, $"Player::IsActionButtonDataValid: Spell action {action} not added into button {button} for player {GetName()} ({GetGUID()}): spell not exist");
|
||||||
return false;
|
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;
|
break;
|
||||||
case ActionButtonType.Item:
|
case ActionButtonType.Item:
|
||||||
if (Global.ObjectMgr.GetItemTemplate((uint)action) == null)
|
if (Global.ObjectMgr.GetItemTemplate((uint)action) == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user