mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 19:37:02 +00:00
[9049] Additional fixes for talent 17056 and ranks.
Thanks to Sarjuuk for clarify existed problems and help in prepare fix.
This commit is contained in:
parent
503496e09c
commit
5e081196b1
3 changed files with 9 additions and 9 deletions
|
|
@ -3019,16 +3019,17 @@ void Aura::HandleAuraModShapeshift(bool apply, bool Real)
|
|||
}
|
||||
}
|
||||
|
||||
if(!furorChance)
|
||||
break;
|
||||
|
||||
if (m_modifier.m_miscvalue == FORM_CAT)
|
||||
{
|
||||
m_target->SetPower(POWER_ENERGY, 0);
|
||||
// Furor chance is now amount of energy for cat form
|
||||
m_target->CastCustomSpell(m_target, 17099, &furorChance, NULL, NULL, this);
|
||||
// Furor chance is now amount allowed to save energy for cat form
|
||||
// without talent it reset to 0
|
||||
if (m_target->GetPower(POWER_ENERGY) > furorChance)
|
||||
{
|
||||
m_target->SetPower(POWER_ENERGY, 0);
|
||||
m_target->CastCustomSpell(m_target, 17099, &furorChance, NULL, NULL, this);
|
||||
}
|
||||
}
|
||||
else
|
||||
else if(furorChance) // only if talent known
|
||||
{
|
||||
m_target->SetPower(POWER_RAGE, 0);
|
||||
if(urand(1,100) <= furorChance)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue