mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[11406] Add dummy aura effect (removal) of spell 42454
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
4e2a476d7d
commit
c1ab3c4be4
2 changed files with 20 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue