mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[7704] Implement damage part for spell 12809.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
eedc10d46f
commit
94f7bd6ec1
2 changed files with 7 additions and 1 deletions
|
|
@ -378,6 +378,12 @@ void Spell::EffectSchoolDMG(uint32 effect_idx)
|
|||
damage = uint32(damage * m_caster->GetTotalAttackPowerValue(BASE_ATTACK) / 100);
|
||||
m_caster->ModifyAuraState(AURA_STATE_WARRIOR_VICTORY_RUSH, false);
|
||||
}
|
||||
// Concussion Blow
|
||||
else if(m_spellInfo->SpellFamilyFlags & 0x0000000004000000LL)
|
||||
{
|
||||
if(effect_idx < 2 && m_spellInfo->Effect[effect_idx+1]==SPELL_EFFECT_DUMMY)
|
||||
damage += uint32(m_spellInfo->CalculateSimpleValue(effect_idx+1) * m_caster->GetTotalAttackPowerValue(BASE_ATTACK) / 100);
|
||||
}
|
||||
// Revenge ${$m1+$AP*0.207} to ${$M1+$AP*0.207}
|
||||
else if(m_spellInfo->SpellFamilyFlags & 0x0000000000000400LL)
|
||||
damage+= uint32(m_caster->GetTotalAttackPowerValue(BASE_ATTACK) * 0.207f);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7703"
|
||||
#define REVISION_NR "7704"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue