Core: Updated to 11.0.2

Port From (https://github.com/TrinityCore/TrinityCore/commit/df1ec76d54db3a91759fc93f4d6b6828d4ec0f59)
This commit is contained in:
Hondacrx
2024-09-08 15:09:30 -04:00
parent ad461858ca
commit 6bdb8a6c70
28 changed files with 1761 additions and 1712 deletions
+6 -15
View File
@@ -254,9 +254,15 @@ namespace Game
public void ApplyForceReaction(uint faction_id, ReputationRank rank, bool apply)
{
if (apply)
{
_forcedReactions[faction_id] = rank;
_player.SetVisibleForcedReaction(faction_id, rank);
}
else
{
_forcedReactions.Remove(faction_id);
_player.RemoveVisibleForcedReaction(faction_id);
}
}
ReputationFlags GetDefaultStateFlags(FactionRecord factionEntry)
@@ -273,21 +279,6 @@ namespace Game
return flags;
}
public void SendForceReactions()
{
SetForcedReactions setForcedReactions = new();
foreach (var pair in _forcedReactions)
{
ForcedReaction forcedReaction;
forcedReaction.Faction = (int)pair.Key;
forcedReaction.Reaction = (int)pair.Value;
setForcedReactions.Reactions.Add(forcedReaction);
}
_player.SendPacket(setForcedReactions);
}
public void SendState(FactionState faction)
{
SetFactionStanding setFactionStanding = new();