mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 22:37:05 +00:00
[8824] Implement 3.2.x changes for spell 5308 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
fbe9241a96
commit
55e715dddd
2 changed files with 14 additions and 6 deletions
|
|
@ -1399,14 +1399,22 @@ void Spell::EffectDummy(uint32 i)
|
|||
return;
|
||||
|
||||
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] +
|
||||
// up to max 30 rage cost
|
||||
if(rage > 30)
|
||||
rage = 30;
|
||||
|
||||
// Glyph of Execution bonus
|
||||
uint32 rage_modified = rage;
|
||||
|
||||
if (Aura *aura = m_caster->GetDummyAura(58367))
|
||||
rage_modified += aura->GetModifier()->m_amount;
|
||||
|
||||
int32 basePoints0 = damage+int32(rage_modified * 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);
|
||||
m_caster->SetPower(POWER_RAGE, m_caster->GetPower(POWER_RAGE)-rage);
|
||||
return;
|
||||
}
|
||||
// Slam
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8823"
|
||||
#define REVISION_NR "8824"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue