mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Players: Prevent sending QuestUpdateAddCredit on QUEST_OBJECTIVE_ITEM (#28170)
This commit is contained in:
@@ -16474,10 +16474,17 @@ void Player::UpdateQuestObjectiveProgress(QuestObjectiveType objectiveType, int3
|
||||
SetQuestObjectiveData(objective, newProgress);
|
||||
if (addCount > 0 && !(objective.Flags & QUEST_OBJECTIVE_FLAG_HIDE_CREDIT_MSG))
|
||||
{
|
||||
if (objectiveType != QUEST_OBJECTIVE_PLAYERKILLS)
|
||||
SendQuestUpdateAddCredit(quest, victimGuid, objective, newProgress);
|
||||
else
|
||||
SendQuestUpdateAddPlayer(quest, newProgress);
|
||||
switch (objectiveType)
|
||||
{
|
||||
case QUEST_OBJECTIVE_ITEM:
|
||||
break; // case handled by SMSG_ITEM_PUSH_RESULT
|
||||
case QUEST_OBJECTIVE_PLAYERKILLS:
|
||||
SendQuestUpdateAddPlayer(quest, newProgress);
|
||||
break;
|
||||
default:
|
||||
SendQuestUpdateAddCredit(quest, victimGuid, objective, newProgress);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
objectiveIsNowComplete = IsQuestObjectiveComplete(logSlot, quest, objective);
|
||||
|
||||
Reference in New Issue
Block a user