fix(Core/Player): Fix NotAvoidSatisfy script hook to reference the current player (#23004)

This commit is contained in:
privatecore
2025-10-10 21:53:36 +02:00
committed by GitHub
parent b7d7089da6
commit dd1f6f776c

View File

@@ -6833,7 +6833,7 @@ bool Player::Satisfy(DungeonProgressionRequirements const* ar, uint32 target_map
|| missingPlayerItems.size() || missingPlayerQuests.size() || missingPlayerAchievements.size() || missingPlayerItems.size() || missingPlayerQuests.size() || missingPlayerAchievements.size()
|| missingLeaderItems.size() || missingLeaderQuests.size() || missingLeaderAchievements.size()) || missingLeaderItems.size() || missingLeaderQuests.size() || missingLeaderAchievements.size())
{ {
if (!sScriptMgr->OnPlayerNotAvoidSatisfy(partyLeader, ar, target_map, report)) if (!sScriptMgr->OnPlayerNotAvoidSatisfy(this, ar, target_map, report))
return true; return true;
if (report) if (report)