From 4a10d2d604d2418e63981c95f9196c5d39a02041 Mon Sep 17 00:00:00 2001 From: laise Date: Mon, 21 Dec 2009 01:27:56 +0300 Subject: [PATCH] [9040] Update code for talent 17056 and ranks correct work. Signed-off-by: VladimirMangos --- src/game/SpellAuras.cpp | 13 ++++++++----- src/shared/revision_nr.h | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 77ade4ca6dd..a1c28baf63b 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -3008,27 +3008,30 @@ void Aura::HandleAuraModShapeshift(bool apply, bool Real) case FORM_DIREBEAR: { // get furor proc chance - uint32 FurorChance = 0; + int32 furorChance = 0; Unit::AuraList const& mDummy = m_target->GetAurasByType(SPELL_AURA_DUMMY); for(Unit::AuraList::const_iterator i = mDummy.begin(); i != mDummy.end(); ++i) { if ((*i)->GetSpellProto()->SpellIconID == 238) { - FurorChance = (*i)->GetModifier()->m_amount; + furorChance = (*i)->GetModifier()->m_amount; break; } } + if(!furorChance) + break; + if (m_modifier.m_miscvalue == FORM_CAT) { m_target->SetPower(POWER_ENERGY, 0); - if(urand(1,100) <= FurorChance) - m_target->CastSpell(m_target, 17099, true, NULL, this); + // Furor chance is now amount of energy for cat form + m_target->CastCustomSpell(m_target, 17099, &furorChance, NULL, NULL, this); } else { m_target->SetPower(POWER_RAGE, 0); - if(urand(1,100) <= FurorChance) + if(urand(1,100) <= furorChance) m_target->CastSpell(m_target, 17057, true, NULL, this); } break; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 5c35a4338b6..93db2cd4a5a 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 "9039" + #define REVISION_NR "9040" #endif // __REVISION_NR_H__