added exclude accounts parameter

This commit is contained in:
Maicol González
2024-09-01 02:36:24 -03:00
parent 333cc730c7
commit a80b788631

View File

@@ -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;