mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Clarify functionality of Enable config option
This commit is contained in:
@@ -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
|
||||
#
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user