mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
Scripts/Commands: Fix .quest complete to properly work with PvP kill quests. Closes #16321.
This commit is contained in:
@@ -230,6 +230,11 @@ public:
|
||||
player->KillCreditGO(creature);
|
||||
}
|
||||
|
||||
// player kills
|
||||
if (quest->HasSpecialFlag(QUEST_SPECIAL_FLAGS_PLAYER_KILL))
|
||||
if (uint32 reqPlayers = quest->GetPlayersSlain())
|
||||
player->KilledPlayerCreditForQuest(reqPlayers, quest);
|
||||
|
||||
// If the quest requires reputation to complete
|
||||
if (uint32 repFaction = quest->GetRepObjectiveFaction())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user