Do not apply healing scaling to bandages

This commit is contained in:
郑佩茹
2022-12-11 14:18:35 -07:00
parent f42cb0f867
commit 3b18fc0178

View File

@@ -440,7 +440,7 @@ public:
void ModifyHealReceived(Unit* /*target*/, Unit *healer, uint32 &heal, SpellInfo const *spellInfo) override void ModifyHealReceived(Unit* /*target*/, Unit *healer, uint32 &heal, SpellInfo const *spellInfo) override
{ {
// Skip potions, bandages, percentage based heals like Rune Tap, etc. // Skip potions, bandages, percentage based heals like Rune Tap, etc.
if (spellInfo->HasAttribute(SPELL_ATTR0_NO_IMMUNITIES) || spellInfo->Id == SPELL_RUNE_TAP) if (spellInfo->HasAttribute(SPELL_ATTR0_NO_IMMUNITIES) || spellInfo->Mechanic == MECHANIC_BANDAGE || spellInfo->Id == SPELL_RUNE_TAP)
{ {
return; return;
} }