Core/Players: Don't remove unlearned spells from action bars
This commit is contained in:
1 parent
1df15cf79e
commit
a1bf752e4b
1 file changed
-7
@@ -5818,13 +5818,6 @@ bool Player::IsActionButtonDataValid(uint8 button, uint32 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 %u 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))
|
||||
|
||||
Reference in new issue
Block a user