fix(Core/Spells): Seal of Command, Seal of Vengeance and Seal of Corr… (#15193)
This commit is contained in:
@@ -3352,6 +3352,7 @@ void Spell::EffectWeaponDmg(SpellEffIndex effIndex)
|
|||||||
// some spell specific modifiers
|
// some spell specific modifiers
|
||||||
float totalDamagePercentMod = 100.0f; // applied to final bonus+weapon damage
|
float totalDamagePercentMod = 100.0f; // applied to final bonus+weapon damage
|
||||||
int32 spell_bonus = 0; // bonus specific for spell
|
int32 spell_bonus = 0; // bonus specific for spell
|
||||||
|
bool normalized = false;
|
||||||
|
|
||||||
switch (m_spellInfo->SpellFamilyName)
|
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.08f * m_caster->GetTotalAttackPowerValue(BASE_ATTACK));
|
||||||
spell_bonus += int32(0.13f * m_caster->SpellBaseDamageBonusDone(m_spellInfo->GetSchoolMask()));
|
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;
|
break;
|
||||||
}
|
}
|
||||||
case SPELLFAMILY_SHAMAN:
|
case SPELLFAMILY_SHAMAN:
|
||||||
@@ -3557,14 +3570,9 @@ void Spell::EffectWeaponDmg(SpellEffIndex effIndex)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool normalized = false;
|
|
||||||
float weaponDamagePercentMod = 100.0f;
|
float weaponDamagePercentMod = 100.0f;
|
||||||
int32 fixed_bonus = 0;
|
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)
|
for (int j = 0; j < MAX_SPELL_EFFECTS; ++j)
|
||||||
{
|
{
|
||||||
switch (m_spellInfo->Effects[j].Effect)
|
switch (m_spellInfo->Effects[j].Effect)
|
||||||
|
|||||||
Reference in New Issue
Block a user