mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[7825] Fixed typo in comment and var. name.
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
1f3210b0ca
commit
ff80f14d2d
3 changed files with 4 additions and 4 deletions
|
|
@ -589,9 +589,9 @@ void Spell::EffectSchoolDMG(uint32 effect_idx)
|
|||
else if(m_spellInfo->SpellFamilyFlags&0x0004000000000000LL)
|
||||
{
|
||||
// Add main hand dps * effect[2] amount
|
||||
float averange = (m_caster->GetFloatValue(UNIT_FIELD_MINDAMAGE) + m_caster->GetFloatValue(UNIT_FIELD_MAXDAMAGE)) / 2;
|
||||
float average = (m_caster->GetFloatValue(UNIT_FIELD_MINDAMAGE) + m_caster->GetFloatValue(UNIT_FIELD_MAXDAMAGE)) / 2;
|
||||
int32 count = m_caster->CalculateSpellDamage(m_spellInfo, 2, m_spellInfo->EffectBasePoints[2], unitTarget);
|
||||
damage += count * int32(averange * IN_MILISECONDS) / m_caster->GetAttackTime(BASE_ATTACK);
|
||||
damage += count * int32(average * IN_MILISECONDS) / m_caster->GetAttackTime(BASE_ATTACK);
|
||||
}
|
||||
// Shield of Righteousness
|
||||
else if(m_spellInfo->SpellFamilyFlags&0x0010000000000000LL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue