Core/Gossip: Drop OptionType for gossip_menu_option and rename OptionIcon to OptionNpc as it also determines functionality on client side
Port From (https://github.com/TrinityCore/TrinityCore/commit/69e0249807f5a8f351e6be6f7350ebace3d2997a)
This commit is contained in:
@@ -97,18 +97,12 @@ namespace Game
|
||||
if (!unit.CanResetTalents(_player))
|
||||
return;
|
||||
|
||||
if (!_player.PlayerTalkClass.GetGossipMenu().HasMenuItemType((uint)GossipOption.Unlearntalents))
|
||||
return;
|
||||
|
||||
// remove fake death
|
||||
if (GetPlayer().HasUnitState(UnitState.Died))
|
||||
GetPlayer().RemoveAurasByType(AuraType.FeignDeath);
|
||||
|
||||
if (!GetPlayer().ResetTalents())
|
||||
{
|
||||
GetPlayer().SendRespecWipeConfirm(ObjectGuid.Empty, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
GetPlayer().SendTalentsInfoData();
|
||||
unit.CastSpell(GetPlayer(), 14867, true); //spell: "Untalent Visual Effect"
|
||||
|
||||
Reference in New Issue
Block a user