Core/Players: Properly mark all class/specialization/talent/pvp talent learned spells as dependent

Port From (https://github.com/TrinityCore/TrinityCore/commit/d7f5c19e1a1b969bf34fcf5cb38f54c1472583ea)
This commit is contained in:
hondacrx
2022-09-07 15:26:20 -04:00
parent 7357a98adc
commit 716cad0ec3
3 changed files with 25 additions and 15 deletions
-2
View File
@@ -4570,13 +4570,11 @@ namespace Game.Entities
if (enabled)
{
SetPlayerFlag(PlayerFlags.WarModeDesired);
TogglePvpTalents(true);
SetPvP(true);
}
else
{
RemovePlayerFlag(PlayerFlags.WarModeDesired);
TogglePvpTalents(false);
SetPvP(false);
}