fix(Core/Spells): Overflow damage (#13424)
This commit is contained in:
parent
7530d6aff5
commit
252755415c
3 changed files with 3 additions and 3 deletions
|
|
@ -62,9 +62,9 @@ void Unit::UpdateDamagePhysical(WeaponAttackType attType)
|
|||
float totalMin = 0.f;
|
||||
float totalMax = 0.f;
|
||||
|
||||
float tmpMin, tmpMax;
|
||||
for (uint8 i = 0; i < MAX_ITEM_PROTO_DAMAGES; ++i)
|
||||
{
|
||||
float tmpMin, tmpMax;
|
||||
CalculateMinMaxDamage(attType, false, true, tmpMin, tmpMax, i);
|
||||
totalMin += tmpMin;
|
||||
totalMax += tmpMax;
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ class spell_rog_blade_flurry : public AuraScript
|
|||
DamageInfo* damageInfo = eventInfo.GetDamageInfo();
|
||||
if (procTarget && damageInfo)
|
||||
{
|
||||
int32 damage = damageInfo->GetUnmitigatedDamage();
|
||||
int32 damage = damageInfo->GetDamage();
|
||||
|
||||
CustomSpellValues values;
|
||||
values.AddSpellMod(SPELLVALUE_BASE_POINT0, damage);
|
||||
|
|
|
|||
|
|
@ -668,7 +668,7 @@ class spell_warr_sweeping_strikes : public AuraScript
|
|||
}
|
||||
else
|
||||
{
|
||||
int32 damage = damageInfo->GetUnmitigatedDamage();
|
||||
int32 damage = damageInfo->GetDamage();
|
||||
GetTarget()->CastCustomSpell(_procTarget, SPELL_WARRIOR_SWEEPING_STRIKES_EXTRA_ATTACK_1, &damage, 0, 0, true, nullptr, aurEff);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue