*Fix Haunting Spirits.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-04-14 20:04:01 +02:00
parent 6c44316d8e
commit 7d2e5c31a8
2 changed files with 19 additions and 1 deletions
+18
View File
@@ -2266,6 +2266,12 @@ void AuraEffect::HandleAuraDummy(bool apply, bool Real)
{
switch(GetId())
{
// Haunting Spirits - perdiodic trigger demon
case 7057:
m_isPeriodic = true;
m_amplitude = irand (0, 60) + 30;
m_amplitude *= IN_MILISECONDS;
return;
case 1515: // Tame beast
// FIX_ME: this is 2.0.12 threat effect replaced in 2.1.x by dummy aura, must be checked for correctness
if( caster && m_target->CanHaveThreatList())
@@ -6165,6 +6171,18 @@ void AuraEffect::PeriodicTick()
m_target->ModifyPower(pt, m_amount*3/5);
break;
}
case SPELL_AURA_DUMMY:
{
// Haunting Spirits
if (GetId() == 7057)
{
m_target->CastSpell((Unit*) , m_amount , true);
m_amplitude = irand (0 , 60 ) + 30;
m_amplitude *= IN_MILISECONDS;
break;
}
break;
}
// Here tick dummy auras
case SPELL_AURA_PERIODIC_DUMMY:
{