fix(Core/Spells): Seal of Command, Seal of Vengeance and Seal of Corr… (#15193)

This commit is contained in:
UltraNix
2023-03-04 21:40:33 +01:00
committed by GitHub
parent ea19c7f808
commit 88401360ab

View File

@@ -3352,6 +3352,7 @@ void Spell::EffectWeaponDmg(SpellEffIndex effIndex)
// some spell specific modifiers
float totalDamagePercentMod = 100.0f; // applied to final bonus+weapon damage
int32 spell_bonus = 0; // bonus specific for spell
bool normalized = false;
switch (m_spellInfo->SpellFamilyName)
{
@@ -3438,6 +3439,18 @@ void Spell::EffectWeaponDmg(SpellEffIndex effIndex)
spell_bonus += int32(0.08f * m_caster->GetTotalAttackPowerValue(BASE_ATTACK));
spell_bonus += int32(0.13f * m_caster->SpellBaseDamageBonusDone(m_spellInfo->GetSchoolMask()));
}
switch (m_spellInfo->Id)
{
case 20424: // Seal of Command
case 42463: // Seal of Vengeance
case 53739: // Seal of Corruption
case 53385: // Divine Storm
normalized = true;
break;
default:
break;
}
break;
}
case SPELLFAMILY_SHAMAN:
@@ -3557,14 +3570,9 @@ void Spell::EffectWeaponDmg(SpellEffIndex effIndex)
}
}
bool normalized = false;
float weaponDamagePercentMod = 100.0f;
int32 fixed_bonus = 0;
// xinef: Divine Storm deals normalized damage
if (m_spellInfo->Id == 53385)
normalized = true;
for (int j = 0; j < MAX_SPELL_EFFECTS; ++j)
{
switch (m_spellInfo->Effects[j].Effect)