*Implement spell 32960

--HG--
branch : trunk
This commit is contained in:
Blaymoira
2009-02-12 16:24:34 +01:00
parent 4730e6e5ce
commit dfc3d115c5
+15
View File
@@ -5680,6 +5680,7 @@ void Aura::PeriodicTick()
int32 gain = pCaster->ModifyPower(power,gain_amount);
m_target->AddThreat(pCaster, float(gain) * 0.5f, GetSpellSchoolMask(GetSpellProto()), GetSpellProto());
}
// Mark of Kaz'rogal
if(GetId() == 31447 && m_target->GetPower(power) == 0)
{
@@ -5687,6 +5688,20 @@ void Aura::PeriodicTick()
// Remove aura
SetAuraDuration(0);
}
// Mark of Kazzak
if(GetId() == 32960)
{
int32 modifier = (m_target->GetPower(power) * 0.05f);
m_target->ModifyPower(power, -modifier);
if(m_target->GetPower(power) == 0)
{
m_target->CastSpell(m_target, 32961, true, 0, this);
// Remove aura
SetAuraDuration(0);
}
}
break;
}
case SPELL_AURA_PERIODIC_ENERGIZE: