This commit is contained in:
luis
2026-11-14 17:33:43 -03:00
parent fc930b0324
commit 0bd8bdb3f8
2 changed files with 2 additions and 8 deletions
+1 -7
View File
@@ -8289,12 +8289,6 @@ int32 Unit::MeleeDamageBonusDone(Unit* pVictim, int32 damage, WeaponAttackType a
// Done total percent damage auras
float DoneTotalMod = 1.0f;
// Pet damage multiplier
DoneTotalMod *= GetTotalAuraMultiplier(SPELL_AURA_PET_DAMAGE_MULTI);
if (IsPet())
if (Unit* owner = GetOwner())
DoneTotalMod *= owner->GetTotalAuraMultiplier(SPELL_AURA_PET_DAMAGE_MULTI);
SpellSchoolMask schoolMask = spellProto ? spellProto->GetSchoolMask() : damageSchoolMask;
if (!(schoolMask & SPELL_SCHOOL_MASK_NORMAL))
@@ -8328,7 +8322,7 @@ int32 Unit::MeleeDamageBonusDone(Unit* pVictim, int32 damage, WeaponAttackType a
{
if (Unit* owner = GetOwner())
{
Unit::AuraEffectList const& modSummonDamageAuras = owner->GetAuraEffectsByType(SPELL_AURA_MOD_SUMMON_DAMAGE_PCT_DONE);
Unit::AuraEffectList const& modSummonDamageAuras = owner->GetAuraEffectsByType(SPELL_AURA_MOD_DAMAGE_PCT_DONE_SUMMON);
for (AuraEffect const* aurEff : modSummonDamageAuras)
AddPct(DoneTotalMod, aurEff->GetAmount());
}
@@ -3072,7 +3072,7 @@ class spell_anduin_wrynn_force_of_will : public AuraScript
{
OnEffectApply += AuraEffectApplyFn(spell_anduin_wrynn_force_of_will::OnApply, EFFECT_0, SPELL_AURA_MOD_DAMAGE_PERCENT_DONE, AURA_EFFECT_HANDLE_REAL);
DoEffectCalcAmount += AuraEffectCalcAmountFn(spell_anduin_wrynn_force_of_will::RecalculateHook, EFFECT_0, SPELL_AURA_MOD_DAMAGE_PERCENT_DONE);
DoEffectCalcAmount += AuraEffectCalcAmountFn(spell_anduin_wrynn_force_of_will::RecalculateHook, EFFECT_1, SPELL_AURA_MOD_SUMMON_DAMAGE_PCT_DONE);
DoEffectCalcAmount += AuraEffectCalcAmountFn(spell_anduin_wrynn_force_of_will::RecalculateHook, EFFECT_1, SPELL_AURA_MOD_DAMAGE_PCT_DONE_PET);
DoEffectCalcAmount += AuraEffectCalcAmountFn(spell_anduin_wrynn_force_of_will::RecalculateHookDamageTaken, EFFECT_2, SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN);
}
};