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:
hondacrx
2022-09-08 18:06:18 -04:00
parent da1d0717fd
commit dbf746f9ea
13 changed files with 224 additions and 209 deletions
-6
View File
@@ -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"