mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7064] Fix warrior 46968 and ranks damage from AP
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
48bebc4056
commit
7162d82a4d
2 changed files with 9 additions and 1 deletions
|
|
@ -384,6 +384,14 @@ void Spell::EffectSchoolDMG(uint32 effect_idx)
|
||||||
// Heroic Throw ${$m1+$AP*.50}
|
// Heroic Throw ${$m1+$AP*.50}
|
||||||
else if(m_spellInfo->SpellFamilyFlags & 0x0000000100000000LL)
|
else if(m_spellInfo->SpellFamilyFlags & 0x0000000100000000LL)
|
||||||
damage+= uint32(m_caster->GetTotalAttackPowerValue(BASE_ATTACK) * 0.5f);
|
damage+= uint32(m_caster->GetTotalAttackPowerValue(BASE_ATTACK) * 0.5f);
|
||||||
|
// Shockwave ${$m3/100*$AP}
|
||||||
|
else if(m_spellInfo->SpellFamilyFlags & 0x0000800000000000LL)
|
||||||
|
{
|
||||||
|
int32 pct = m_caster->CalculateSpellDamage(m_spellInfo, 2, m_spellInfo->EffectBasePoints[2], unitTarget);
|
||||||
|
if (pct > 0)
|
||||||
|
damage+= int32(m_caster->GetTotalAttackPowerValue(BASE_ATTACK) * pct / 100);
|
||||||
|
break;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SPELLFAMILY_WARLOCK:
|
case SPELLFAMILY_WARLOCK:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7063"
|
#define REVISION_NR "7064"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue