[7498] Implement GO spawn part of spell 39837 work.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Small fix in GO spawn duration. Aura remove at GO remove fixed in prev commit.
This commit is contained in:
Seline 2009-03-19 22:07:10 +03:00 committed by VladimirMangos
parent 4bc5bf3877
commit 5a2c08ed7f
2 changed files with 17 additions and 1 deletions

View file

@ -3391,6 +3391,22 @@ void Aura::HandleAuraModStun(bool apply, bool Real)
data.append(m_target->GetPackGUID());
data << uint32(0);
m_target->SendMessageToSet(&data,true);
// Summon the Naj'entus Spine GameObject on target if spell is Impaling Spine
if(GetId() == 39837)
{
GameObject* pObj = new GameObject;
if(pObj->Create(objmgr.GenerateLowGuid(HIGHGUID_GAMEOBJECT), 185584, m_target->GetMap(), m_target->GetPhaseMask(),
m_target->GetPositionX(), m_target->GetPositionY(), m_target->GetPositionZ(), m_target->GetOrientation(), 0.0f, 0.0f, 0.0f, 0.0f, 100, 1))
{
pObj->SetRespawnTime(GetAuraDuration()/IN_MILISECONDS);
pObj->SetSpellId(GetId());
m_target->AddGameObject(pObj);
m_target->GetMap()->Add(pObj);
}
else
delete pObj;
}
}
else
{

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7497"
#define REVISION_NR "7498"
#endif // __REVISION_NR_H__