822 | | GameObject* pGameObj = new GameObject; |
823 | | |
824 | | Map *map = creatureTarget->GetMap(); |
825 | | |
826 | | if(!pGameObj->Create(objmgr.GenerateLowGuid(HIGHGUID_GAMEOBJECT), 179644, map, |
827 | | creatureTarget->GetPositionX(), creatureTarget->GetPositionY(), creatureTarget->GetPositionZ(), |
828 | | creatureTarget->GetOrientation(), 0, 0, 0, 0, 100, 1) ) |
829 | | { |
830 | | delete pGameObj; |
831 | | return; |
832 | | } |
833 | | |
834 | | pGameObj->SetRespawnTime(creatureTarget->GetRespawnTime()-time(NULL)); |
835 | | pGameObj->SetOwnerGUID(m_caster->GetGUID() ); |
836 | | pGameObj->SetUInt32Value(GAMEOBJECT_LEVEL, m_caster->getLevel() ); |
837 | | pGameObj->SetSpellId(m_spellInfo->Id); |
838 | | |
839 | | DEBUG_LOG("AddObject at SpellEfects.cpp EffectDummy\n"); |
840 | | map->Add(pGameObj); |
841 | | |
| 822 | GameObject* Crystal_Prison = m_caster->SummonGameObject(179644, creatureTarget->GetPositionX(), creatureTarget->GetPositionY(), creatureTarget->GetPositionZ(), creatureTarget->GetOrientation(), 0, 0, 0, 0, creatureTarget->GetRespawnTime()-time(NULL)); |
| 823 | sLog.outDebug("SummonGameObject at SpellEfects.cpp EffectDummy for Spell 23019\n"); |