Core/Auras: fixed updating buff mods when un(applying) SPELL_AURA_MOD_PERCENT_STAT effects

This commit is contained in:
Ovahlord
2024-08-04 13:05:22 +02:00
parent 86ac105ac8
commit 9a78fbecdc

View File

@@ -3693,6 +3693,9 @@ void AuraEffect::HandleModPercentStat(AuraApplication const* aurApp, uint8 mode,
target->SetStatPctModifier(UnitMods(UNIT_MOD_STAT_START + i), BASE_PCT, amount);
}
}
if (target->GetTypeId() == TYPEID_PLAYER || target->IsPet())
target->UpdateStatBuffMod(Stats(i));
}
}