mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Players: Implemented setting tradeskill recipes as favorite
This commit is contained in:
@@ -111,3 +111,11 @@ void WorldSession::HandleUnlearnSkillOpcode(WorldPackets::Spells::UnlearnSkill&
|
||||
|
||||
GetPlayer()->SetSkill(packet.SkillLine, 0, 0, 0);
|
||||
}
|
||||
|
||||
void WorldSession::HandleTradeSkillSetFavorite(WorldPackets::Spells::TradeSkillSetFavorite const& tradeSkillSetFavorite)
|
||||
{
|
||||
if (!_player->HasSpell(tradeSkillSetFavorite.RecipeID))
|
||||
return;
|
||||
|
||||
_player->SetSpellFavorite(tradeSkillSetFavorite.RecipeID, tradeSkillSetFavorite.IsFavorite);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user