Fix AQ40 quest completion check, more Naxx progress

This commit is contained in:
郑佩茹
2022-08-28 21:06:03 -06:00
parent 1c814c6a91
commit 4670a66382
3 changed files with 199 additions and 5 deletions

View File

@@ -3,7 +3,6 @@
*/
#include "IndividualProgression.h"
#include "../../../src/server/shared/DataStores/DBCEnums.h"
static float vanillaPowerAdjustment, vanillaHealthAdjustment, tbcPowerAdjustment, tbcHealthAdjustment, vanillaHealingAdjustment, tbcHealingAdjustment, previousGearTuning;
static bool enabled, questXpFix, hunterPetLevelFix, requirePreAQQuests, enforceGroupRules;
@@ -524,19 +523,18 @@ public:
return true;
}
bool OnBeforeQuestComplete(Player* player, uint32 quest_id) override
void OnPlayerCompleteQuest(Player* player, Quest const* quest) override
{
if (!enabled)
{
return true;
return;
}
switch (quest_id)
switch (quest->GetQuestId())
{
case MIGHT_OF_KALIMDOR:
UpdateProgressionState(player, PROGRESSION_PRE_AQ);
break;
}
return true;
}
bool CanGroupInvite(Player* player, std::string& membername) override