From a80b788631fce7f66bfb1ec757790df6d137b82f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maicol=20Gonz=C3=A1lez?= Date: Sun, 1 Sep 2024 02:36:24 -0300 Subject: [PATCH] added exclude accounts parameter --- src/IndividualProgressionPlayer.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/IndividualProgressionPlayer.cpp b/src/IndividualProgressionPlayer.cpp index 5b2de1b..8101f34 100644 --- a/src/IndividualProgressionPlayer.cpp +++ b/src/IndividualProgressionPlayer.cpp @@ -87,7 +87,7 @@ public: void OnAfterUpdateMaxHealth(Player* player, float& value) override { // TODO: This should be adjust to use an aura like damage adjustment. This is more robust to update when changing equipment, etc. - if (!sIndividualProgression->enabled) + if (!sIndividualProgression->enabled || isExcludedFromProgression(player)) { return; } @@ -119,7 +119,7 @@ public: void OnQuestComputeXP(Player* player, Quest const* quest, uint32& xpValue) override { - if (!sIndividualProgression->enabled || !sIndividualProgression->questXpFix) + if (!sIndividualProgression->enabled || !sIndividualProgression->questXpFix || isExcludedFromProgression(player)) { return; } @@ -136,7 +136,7 @@ public: void OnGiveXP(Player* player, uint32& amount, Unit* /*victim*/, uint8 xpSource) override { - if (!sIndividualProgression->enabled) + if (!sIndividualProgression->enabled || isExcludedFromProgression(player)) { return; } @@ -249,7 +249,7 @@ public: void OnPlayerCompleteQuest(Player* player, Quest const* quest) override { - if (!sIndividualProgression->enabled) + if (!sIndividualProgression->enabled || isExcludedFromProgression(player)) { return; } @@ -276,7 +276,7 @@ public: bool CanGroupInvite(Player* player, std::string& membername) override { - if (!sIndividualProgression->enabled || !sIndividualProgression->enforceGroupRules) + if (!sIndividualProgression->enabled || !sIndividualProgression->enforceGroupRules || isExcludedFromProgression(player)) { return true; } @@ -288,7 +288,7 @@ public: bool CanGroupAccept(Player* player, Group* group) override { - if (!sIndividualProgression->enabled || !sIndividualProgression->enforceGroupRules) + if (!sIndividualProgression->enabled || !sIndividualProgression->enforceGroupRules || isExcludedFromProgression(player)) { return true; } @@ -321,7 +321,7 @@ public: bool OnUpdateFishingSkill(Player* player, int32 /*skill*/, int32 /*zone_skill*/, int32 chance, int32 roll) override { - if (!sIndividualProgression->enabled || !sIndividualProgression->fishingFix) + if (!sIndividualProgression->enabled || !sIndividualProgression->fishingFix || isExcludedFromProgression(player)) return true; if (chance < roll) return false;