mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
*Remove GAMEOBJECT_LEVEL value for summoned gameobject to fix the bug that some go cannot be used. Please check if this causes other bugs related to gameobject.
--HG-- branch : trunk
This commit is contained in:
@@ -845,7 +845,7 @@ void LoadOverridenSQLData()
|
||||
// Sunwell Plateau : Kalecgos : Spectral Rift
|
||||
goInfo = const_cast<GameObjectInfo*>(GetGameObjectInfo(187055));
|
||||
if(goInfo && goInfo->type == GAMEOBJECT_TYPE_GOOBER)
|
||||
goInfo->type = GAMEOBJECT_TYPE_SPELLCASTER;
|
||||
goInfo->goober.lockId = 57; // need LOCKTYPE_QUICK_OPEN
|
||||
}
|
||||
|
||||
void LoadOverridenDBCData()
|
||||
|
||||
@@ -677,7 +677,7 @@ void Spell::EffectDummy(uint32 i)
|
||||
|
||||
pGameObj->SetRespawnTime(0);
|
||||
pGameObj->SetOwnerGUID(m_caster->GetGUID());
|
||||
pGameObj->SetUInt32Value(GAMEOBJECT_LEVEL, m_caster->getLevel());
|
||||
//pGameObj->SetUInt32Value(GAMEOBJECT_LEVEL, m_caster->getLevel());
|
||||
pGameObj->SetSpellId(m_spellInfo->Id);
|
||||
|
||||
MapManager::Instance().GetMap(creatureTarget->GetMapId(), pGameObj)->Add(pGameObj);
|
||||
@@ -5576,7 +5576,7 @@ void Spell::EffectSummonObject(uint32 i)
|
||||
return;
|
||||
}
|
||||
|
||||
pGameObj->SetUInt32Value(GAMEOBJECT_LEVEL,m_caster->getLevel());
|
||||
//pGameObj->SetUInt32Value(GAMEOBJECT_LEVEL,m_caster->getLevel());
|
||||
int32 duration = GetSpellDuration(m_spellInfo);
|
||||
pGameObj->SetRespawnTime(duration > 0 ? duration/1000 : 0);
|
||||
pGameObj->SetSpellId(m_spellInfo->Id);
|
||||
@@ -6268,7 +6268,7 @@ void Spell::EffectTransmitted(uint32 effIndex)
|
||||
|
||||
pGameObj->SetOwnerGUID(m_caster->GetGUID() );
|
||||
|
||||
pGameObj->SetUInt32Value(GAMEOBJECT_LEVEL, m_caster->getLevel() );
|
||||
//pGameObj->SetUInt32Value(GAMEOBJECT_LEVEL, m_caster->getLevel() );
|
||||
pGameObj->SetSpellId(m_spellInfo->Id);
|
||||
|
||||
DEBUG_LOG("AddObject at SpellEfects.cpp EffectTransmitted\n");
|
||||
@@ -6288,7 +6288,7 @@ void Spell::EffectTransmitted(uint32 effIndex)
|
||||
fx, fy, fz, m_caster->GetOrientation(), 0, 0, 0, 0, 100, 1))
|
||||
{
|
||||
linkedGO->SetRespawnTime(duration > 0 ? duration/1000 : 0);
|
||||
linkedGO->SetUInt32Value(GAMEOBJECT_LEVEL, m_caster->getLevel() );
|
||||
//linkedGO->SetUInt32Value(GAMEOBJECT_LEVEL, m_caster->getLevel() );
|
||||
linkedGO->SetSpellId(m_spellInfo->Id);
|
||||
linkedGO->SetOwnerGUID(m_caster->GetGUID() );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user