Core/Players: PlayerChoice improvements

Port From (https://github.com/TrinityCore/TrinityCore/commit/e59059e1bd2f67691e2da0105771b0cb55b123a4)
This commit is contained in:
Hondacrx
2025-08-18 16:57:28 -04:00
parent 1f6f9013c7
commit cd0ffc6975
9 changed files with 284 additions and 212 deletions
+5 -2
View File
@@ -915,9 +915,12 @@ namespace Game.Scripting
{
ForEach<PlayerScript>(p => p.OnMovieComplete(player, movieId));
}
public void OnPlayerChoiceResponse(Player player, uint choiceId, uint responseId)
public void OnPlayerChoiceResponse(WorldObject obj, Player player, PlayerChoice choice, PlayerChoiceResponse response, ushort clientIdentifier)
{
ForEach<PlayerScript>(p => p.OnPlayerChoiceResponse(player, choiceId, responseId));
Cypher.Assert(choice != null);
Cypher.Assert(response != null);
ForEach<PlayerChoiceScript>(p => p.OnResponse(obj, player, choice, response, clientIdentifier));
}
// Account