forked from mirror/azerothcore-wotlk
fix(Core/Spells): Fix negative SPELL_AURA_MOD_DAMAGE_DONE client display (#24843)
Co-authored-by: blinkysc <[email protected]> Co-authored-by: ariel- <[email protected]>
This commit is contained in:
co-authored by
blinkysc
ariel-
parent
56d2efc31e
commit
cd2f222946
@@ -5340,11 +5340,10 @@ void AuraEffect::HandleModDamageDone(AuraApplication const* aurApp, uint8 mode,
|
||||
// This information for client side use only
|
||||
if (target->IsPlayer())
|
||||
{
|
||||
|
||||
uint16 baseField = GetAmount() >= 0 ? PLAYER_FIELD_MOD_DAMAGE_DONE_POS : PLAYER_FIELD_MOD_DAMAGE_DONE_NEG;
|
||||
for (uint16 i = 0; i < MAX_SPELL_SCHOOL; ++i)
|
||||
if (GetMiscValue() & (1 << i))
|
||||
target->ApplyModUInt32Value(baseField + i, GetAmount(), apply);
|
||||
target->ApplyModInt32Value(baseField + i, GetAmount(), apply);
|
||||
|
||||
if (Guardian* pet = target->ToPlayer()->GetGuardianPet())
|
||||
pet->UpdateAttackPowerAndDamage();
|
||||
|
||||
Reference in New Issue
Block a user