[10359] Implement spell 45449.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
crackm 2010-08-15 02:24:04 +04:00 committed by VladimirMangos
parent 647f731e3b
commit 806ea9bbe7
2 changed files with 16 additions and 1 deletions

View file

@ -1271,6 +1271,21 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
m_caster->CastSpell(m_caster, 45088, true);
return;
}
case 45449: // Arcane Prisoner Rescue
{
uint32 spellId=0;
switch(rand() % 2)
{
case 0: spellId = 45446; break; // Summon Arcane Prisoner - Male
case 1: spellId = 45448; break; // Summon Arcane Prisoner - Female
}
//Spawn
m_caster->CastSpell(m_caster, spellId, true);
//Arcane Prisoner Kill Credit
unitTarget->CastSpell(m_caster, 45456, true);
break;
}
case 45980: // Re-Cursive Transmatter Injection
{
if (m_caster->GetTypeId() == TYPEID_PLAYER && unitTarget)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10358"
#define REVISION_NR "10359"
#endif // __REVISION_NR_H__