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

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Fog 2009-04-29 22:55:30 +04:00 committed by VladimirMangos
parent 6192fcbd0c
commit 30992d0ac3
2 changed files with 80 additions and 48 deletions

View file

@ -2175,9 +2175,11 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
switch(m_spellProto->SpellFamilyName) switch(m_spellProto->SpellFamilyName)
{ {
case SPELLFAMILY_GENERIC: case SPELLFAMILY_GENERIC:
{
switch(GetId())
{ {
// Unstable Power // Unstable Power
if( GetId()==24658 ) case 24658:
{ {
uint32 spellId = 24659; uint32 spellId = 24659;
if (apply && caster) if (apply && caster)
@ -2194,7 +2196,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
return; return;
} }
// Restless Strength // Restless Strength
if( GetId()==24661 ) case 24661:
{ {
uint32 spellId = 24662; uint32 spellId = 24662;
if (apply && caster) if (apply && caster)
@ -2210,8 +2212,11 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
return; return;
} }
//Summon Fire Elemental //Summon Fire Elemental
if (GetId() == 40133 && caster) case 40133:
{ {
if (!caster)
return;
Unit *owner = caster->GetOwner(); Unit *owner = caster->GetOwner();
if (owner && owner->GetTypeId() == TYPEID_PLAYER) if (owner && owner->GetTypeId() == TYPEID_PLAYER)
{ {
@ -2222,10 +2227,12 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
} }
return; return;
} }
//Summon Earth Elemental //Summon Earth Elemental
if (GetId() == 40132 && caster) case 40132 :
{ {
if (!caster)
return;
Unit *owner = caster->GetOwner(); Unit *owner = caster->GetOwner();
if (owner && owner->GetTypeId() == TYPEID_PLAYER) if (owner && owner->GetTypeId() == TYPEID_PLAYER)
{ {
@ -2236,6 +2243,31 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
} }
return; 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; break;
} }
case SPELLFAMILY_MAGE: case SPELLFAMILY_MAGE:

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "7733" #define REVISION_NR "7734"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__