Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
- index 1b148e4..26d5f41 100644
- --- a/src/server/game/Entities/Player/Player.cpp
- +++ b/src/server/game/Entities/Player/Player.cpp
- @@ -14188,6 +14188,12 @@ void Player::PrepareGossipMenu(WorldObject *pSource, uint32 menuId, bool showQue
- pMenu->GetGossipMenu().AddGossipMenuItemData(itr->second.action_menu_id, itr->second.action_poi_id, itr->second.action_script_id);
- }
- }
- +
- + // Added option for reset a dual specialization
- + if (GetSpecsCount() > 1 && pCreature->HasFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_TRAINER) && pCreature->isCanTrainingAndResetTalentsOf(this) && !(getLevel() < sWorld->getIntConfig(CONFIG_MIN_DUALSPEC_LEVEL)))
- + {
- + pMenu->GetGossipMenu().AddMenuItem(GOSSIP_ICON_TRAINER, "I want to cancel a Dual Talent Specialization", 1, 1000 + 1, "Are you sure?", NULL); // (..., ..., GOSSIP_SENDER_MAIN, GOSSIP_SENDER_INFO_DEF + 1, ...)
- + }
- }
- void Player::SendPreparedGossip(WorldObject *pSource)
- @@ -14360,6 +14366,13 @@ void Player::OnGossipSelect(WorldObject* pSource, uint32 gossipListId, uint32 me
- GetSession()->SendBattlegGroundList(guid);
- break;
- }
- + case 1001: //GOSSIP_INFO_DEF + 1, option for unlearning a dual specialization
- + {
- + if (GetSpecsCount() > 1 && getLevel() >= sWorld->getIntConfig(CONFIG_MIN_DUALSPEC_LEVEL))
- + CastSpell(this, 63651, true);
- + PlayerTalkClass->CloseGossip();
- + break;
- + }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment