Core: Updated to 11.0.2
Port From (https://github.com/TrinityCore/TrinityCore/commit/df1ec76d54db3a91759fc93f4d6b6828d4ec0f59)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user