Skip to content

Commit

Permalink
[9040] Update code for talent 17056 and ranks correct work.
Browse files Browse the repository at this point in the history
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
  • Loading branch information
laise authored and VladimirMangos committed Dec 20, 2009
1 parent 31c2970 commit 4a10d2d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions src/game/SpellAuras.cpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion 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__

0 comments on commit 4a10d2d

Please sign in to comment.