mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Move code from prev commit to dummy effect
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
94f7bd6ec1
commit
99a98684d0
1 changed files with 6 additions and 6 deletions
|
|
@ -378,12 +378,6 @@ 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);
|
||||
|
|
@ -1242,6 +1236,12 @@ void Spell::EffectDummy(uint32 i)
|
|||
m_damage+=damage;
|
||||
return;
|
||||
}
|
||||
// Concussion Blow
|
||||
if(m_spellInfo->SpellFamilyFlags & 0x0000000004000000LL)
|
||||
{
|
||||
m_damage+= uint32(damage * m_caster->GetTotalAttackPowerValue(BASE_ATTACK) / 100);
|
||||
return;
|
||||
}
|
||||
switch(m_spellInfo->Id)
|
||||
{
|
||||
// Warrior's Wrath
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue