*[FIX] Furor (Energy part) by HiZed

--HG--
branch : trunk
This commit is contained in:
maximius
2009-09-14 12:27:19 -07:00
parent 49b6e6b037
commit 9a603e8f11
2 changed files with 7 additions and 4 deletions
+5 -3
View File
@@ -3445,9 +3445,11 @@ void AuraEffect::HandleAuraModShapeshift(bool apply, bool Real, bool changeAmoun
if (GetMiscValue() == FORM_CAT)
{
m_target->SetPower(POWER_ENERGY,0);
if(urand(1,100) <= FurorChance)
m_target->CastCustomSpell(m_target,17099,&FurorChance, NULL, NULL,true,NULL,this);
if(m_target->GetPower(POWER_ENERGY) > FurorChance)
{
m_target->SetPower(POWER_ENERGY, 0);
m_target->CastCustomSpell(m_target,17099,&FurorChance,NULL,NULL,true,NULL,this);
}
}
else
{
+2 -1
View File
@@ -7917,7 +7917,8 @@ void Unit::setPowerType(Powers new_powertype)
break;
case POWER_ENERGY:
SetMaxPower(POWER_ENERGY,GetCreatePowers(POWER_ENERGY));
SetPower( POWER_ENERGY,0);
if(getClass() != CLASS_DRUID)
SetPower( POWER_ENERGY,0);
break;
case POWER_HAPPINESS:
SetMaxPower(POWER_HAPPINESS,GetCreatePowers(POWER_HAPPINESS));