[11406] Add dummy aura effect (removal) of spell 42454

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-04-29 09:44:22 +02:00
parent 4e2a476d7d
commit c1ab3c4be4
2 changed files with 20 additions and 1 deletions

View file

@ -2349,6 +2349,25 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
target->RemoveAurasDueToSpell(41105); target->RemoveAurasDueToSpell(41105);
return; return;
} }
case 42454: // Captured Totem
{
if (m_removeMode == AURA_REMOVE_BY_DEFAULT)
{
if (target->getDeathState() != CORPSE)
return;
Unit* pCaster = GetCaster();
if (!pCaster)
return;
// Captured Totem Test Credit
if (Player* pPlayer = pCaster->GetCharmerOrOwnerPlayerOrPlayerItself())
pPlayer->CastSpell(pPlayer, 42455, true);
}
return;
}
case 42517: // Beam to Zelfrax case 42517: // Beam to Zelfrax
{ {
// expecting target to be a dummy creature // expecting target to be a dummy creature

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 "11405" #define REVISION_NR "11406"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__