From f8d0496407c98ea30ead2cda3edb63333901e564 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Fri, 4 Dec 2009 04:45:36 +0300 Subject: [PATCH] [8915] Fixed rage calculation for spell 5308 and ranks. --- src/game/SpellEffects.cpp | 8 ++++---- src/shared/revision_nr.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 87dd27483..d78d9a4ca 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1441,14 +1441,14 @@ void Spell::EffectDummy(uint32 i) uint32 rage = m_caster->GetPower(POWER_RAGE); // up to max 30 rage cost - if(rage > 30) - rage = 30; + if(rage > 300) + rage = 300; // Glyph of Execution bonus uint32 rage_modified = rage; if (Aura *aura = m_caster->GetDummyAura(58367)) - rage_modified += aura->GetModifier()->m_amount; + rage_modified += aura->GetModifier()->m_amount*10; int32 basePoints0 = damage+int32(rage_modified * m_spellInfo->DmgMultiplier[i] + m_caster->GetTotalAttackPowerValue(BASE_ATTACK)*0.2f); @@ -1465,7 +1465,7 @@ void Spell::EffectDummy(uint32 i) if ((*itr)->GetSpellProto()->SpellIconID == 1989) { // saved rage top stored in next affect - uint32 lastrage = (*itr)->GetSpellProto()->CalculateSimpleValue(1); + uint32 lastrage = (*itr)->GetSpellProto()->CalculateSimpleValue(1)*10; if(lastrage < rage) rage -= lastrage; break; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index b64fc8f3f..e8d34af8a 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8914" + #define REVISION_NR "8915" #endif // __REVISION_NR_H__