mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7216] Create gameobject in death point instead spawn point in spell 23019 effect.
This commit is contained in:
parent
ed59d22dec
commit
f5ac3d245f
2 changed files with 6 additions and 5 deletions
|
|
@ -782,14 +782,11 @@ void Spell::EffectDummy(uint32 i)
|
|||
if(creatureTarget->isPet())
|
||||
return;
|
||||
|
||||
creatureTarget->setDeathState(JUST_DIED);
|
||||
creatureTarget->RemoveCorpse();
|
||||
creatureTarget->SetHealth(0); // just for nice GM-mode view
|
||||
|
||||
GameObject* pGameObj = new GameObject;
|
||||
|
||||
Map *map = creatureTarget->GetMap();
|
||||
|
||||
// create before death for get proper coordinates
|
||||
if(!pGameObj->Create(objmgr.GenerateLowGuid(HIGHGUID_GAMEOBJECT), 179644, map, m_caster->GetPhaseMask(),
|
||||
creatureTarget->GetPositionX(), creatureTarget->GetPositionY(), creatureTarget->GetPositionZ(),
|
||||
creatureTarget->GetOrientation(), 0, 0, 0, 0, 100, 1) )
|
||||
|
|
@ -803,6 +800,10 @@ void Spell::EffectDummy(uint32 i)
|
|||
pGameObj->SetUInt32Value(GAMEOBJECT_LEVEL, m_caster->getLevel() );
|
||||
pGameObj->SetSpellId(m_spellInfo->Id);
|
||||
|
||||
creatureTarget->setDeathState(JUST_DIED);
|
||||
creatureTarget->RemoveCorpse();
|
||||
creatureTarget->SetHealth(0); // just for nice GM-mode view
|
||||
|
||||
DEBUG_LOG("AddObject at SpellEfects.cpp EffectDummy\n");
|
||||
map->Add(pGameObj);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue