32 bool anythingLearned =
false;
37 if (!learnTalentFailed.
Reason)
38 learnTalentFailed.
Reason = result;
40 learnTalentFailed.
Talents.push_back(talentId);
43 anythingLearned =
true;
46 if (learnTalentFailed.
Reason)
56 bool anythingLearned =
false;
61 if (!learnPvpTalentFailed.
Reason)
62 learnPvpTalentFailed.
Reason = result;
64 learnPvpTalentFailed.
Talents.push_back(pvpTalent);
67 anythingLearned =
true;
70 if (learnPvpTalentFailed.
Reason)
88 TC_LOG_DEBUG(
"network",
"WORLD: HandleConfirmRespecWipeOpcode - reset type {} is not implemented.", confirmRespecWipe.
RespecType);
#define TC_LOG_DEBUG(filterType__,...)
bool CanResetTalents(Player *player) const
std::string ToString() const
Creature * GetNPCIfCanInteractWith(ObjectGuid const &guid, NPCFlags npcFlags, NPCFlags2 npcFlags2) const
void SendTalentsInfoData()
TalentLearnResult LearnTalent(uint32 talentId, int32 *spellOnCooldown)
void SetSkill(uint32 id, uint16 step, uint16 newVal, uint16 maxVal)
void SetSpellFavorite(uint32 spellId, bool favorite)
TalentLearnResult LearnPvpTalent(uint32 talentID, uint8 slot, int32 *spellOnCooldown)
bool HasSpell(uint32 spell) const override
bool ResetTalents(bool noCost=false)
void RemoveAurasByType(AuraType auraType, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
std::vector< PvPTalent > Talents
WorldPacket const * Write() override
Array< PvPTalent, 4 > Talents
WorldPacket const * Write() override
std::vector< uint16 > Talents
Array< uint16, MAX_TALENT_TIERS > Talents
void HandleLearnTalentsOpcode(WorldPackets::Talent::LearnTalents &packet)
void HandleConfirmRespecWipeOpcode(WorldPackets::Talent::ConfirmRespecWipe &confirmRespecWipe)
Player * GetPlayer() const
void HandleLearnPvpTalentsOpcode(WorldPackets::Talent::LearnPvpTalents &packet)
void SendPacket(WorldPacket const *packet, bool forced=false)
Send a packet to the client.
void HandleTradeSkillSetFavorite(WorldPackets::Spells::TradeSkillSetFavorite const &tradeSkillSetFavorite)
void HandleUnlearnSkillOpcode(WorldPackets::Spells::UnlearnSkill &packet)