[7734] Implement spell 58204 and 58205 used in DK introduction quest. Author: Fog

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-29 16:18:07 -05:00
parent 6317b7b4c5
commit 2b0ad3e65d
+37 -5
View File
@@ -2444,9 +2444,11 @@ void AuraEffect::HandleAuraDummy(bool apply, bool Real)
switch(m_spellProto->SpellFamilyName)
{
case SPELLFAMILY_GENERIC:
{
switch(GetId())
{
// Unstable Power
if( GetId()==24658 )
case 24658:
{
uint32 spellId = 24659;
if (apply && caster)
@@ -2463,7 +2465,7 @@ void AuraEffect::HandleAuraDummy(bool apply, bool Real)
return;
}
// Restless Strength
if( GetId()==24661 )
case 24661:
{
uint32 spellId = 24662;
if (apply && caster)
@@ -2479,8 +2481,11 @@ void AuraEffect::HandleAuraDummy(bool apply, bool Real)
return;
}
//Summon Fire Elemental
if (GetId() == 40133 && caster)
case 40133:
{
if (!caster)
return;
Unit *owner = caster->GetOwner();
if (owner && owner->GetTypeId() == TYPEID_PLAYER)
{
@@ -2491,10 +2496,12 @@ void AuraEffect::HandleAuraDummy(bool apply, bool Real)
}
return;
}
//Summon Earth Elemental
if (GetId() == 40132 && caster)
case 40132 :
{
if (!caster)
return;
Unit *owner = caster->GetOwner();
if (owner && owner->GetTypeId() == TYPEID_PLAYER)
{
@@ -2505,6 +2512,31 @@ void AuraEffect::HandleAuraDummy(bool apply, bool Real)
}
return;
}
// LK Intro VO (1)
case 58204:
if(m_target->GetTypeId() == TYPEID_PLAYER)
{
// Play part 1
if(apply)
m_target->PlayDirectSound(14970, (Player *)m_target);
// continue in 58205
else
m_target->CastSpell(m_target, 58205, true);
}
return;
// LK Intro VO (2)
case 58205:
if(m_target->GetTypeId() == TYPEID_PLAYER)
{
// Play part 2
if(apply)
m_target->PlayDirectSound(14971, (Player *)m_target);
// Play part 3
else
m_target->PlayDirectSound(14972, (Player *)m_target);
}
return;
}
break;
}