Clarify functionality of Enable config option

This commit is contained in:
郑佩茹
2023-04-06 22:21:49 -06:00
parent 497c3e5325
commit bb5ccde9d3
2 changed files with 6 additions and 5 deletions

View File

@@ -10,6 +10,9 @@
#
# IndividualProgression.Enable
# Description: Enable Individual Progression Module
# Please note that like all AzerothCore modules, database changes cannot be undone through config settings.
# This means that world changes like restoring Vanilla quests and NPC stats will remain in place even if disabled.
# Disabling the module will disable functionality like access restrictions, level caps, damage adjustments, etc.
# Default: 1 - Enabled
# 0 - Disabled
#

View File

@@ -475,7 +475,7 @@ public:
void ModifyHealReceived(Unit* /*target*/, Unit *healer, uint32 &heal, SpellInfo const *spellInfo) override
{
// Skip potions, bandages, percentage based heals like Rune Tap, etc.
if (spellInfo->HasAttribute(SPELL_ATTR0_NO_IMMUNITIES) || spellInfo->Mechanic == MECHANIC_BANDAGE || spellInfo->Id == SPELL_RUNE_TAP)
if (!sIndividualProgression->enabled || spellInfo->HasAttribute(SPELL_ATTR0_NO_IMMUNITIES) || spellInfo->Mechanic == MECHANIC_BANDAGE || spellInfo->Id == SPELL_RUNE_TAP)
{
return;
}
@@ -507,8 +507,7 @@ public:
void ModifySpellDamageTaken(Unit* /*target*/, Unit* attacker, int32& damage, SpellInfo const* spellInfo) override
{
// NPCBots Compatibility - attacker may be null
if (!attacker)
if (!sIndividualProgression->enabled || !attacker)
return;
bool isPet = attacker->GetOwner() && attacker->GetOwner()->GetTypeId() == TYPEID_PLAYER;
@@ -534,8 +533,7 @@ public:
void ModifyMeleeDamage(Unit* /*target*/, Unit* attacker, uint32& damage) override
{
// NPCBots Compatibility - attacker may be null
if (!attacker)
if (!sIndividualProgression->enabled || !attacker)
return;
bool isPet = attacker->GetOwner() && attacker->GetOwner()->GetTypeId() == TYPEID_PLAYER;