mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Add AP bonus for warrior 5308 and ranks, also use 58367 dummy bonus
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
d3615532b5
commit
246d45dc80
1 changed files with 7 additions and 1 deletions
|
|
@ -1265,7 +1265,13 @@ void Spell::EffectDummy(uint32 i)
|
|||
if(!unitTarget)
|
||||
return;
|
||||
|
||||
int32 basePoints0 = damage+int32(m_caster->GetPower(POWER_RAGE) * m_spellInfo->DmgMultiplier[i]);
|
||||
uint32 rage = m_caster->GetPower(POWER_RAGE);
|
||||
// Glyph of Execution bonus
|
||||
if (Aura *aura = m_caster->GetDummyAura(58367))
|
||||
rage+=aura->GetModifier()->m_amount;
|
||||
|
||||
int32 basePoints0 = damage+int32(rage * m_spellInfo->DmgMultiplier[i] +
|
||||
m_caster->GetTotalAttackPowerValue(BASE_ATTACK)*0.2f);
|
||||
m_caster->CastCustomSpell(unitTarget, 20647, &basePoints0, NULL, NULL, true, 0);
|
||||
m_caster->SetPower(POWER_RAGE,0);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue