Core/ObjectMgr: Refactor sGOStorage
This commit is contained in:
@@ -2773,7 +2773,7 @@ void Spell::EffectOpenLock(SpellEffIndex effIndex)
|
||||
// Get lockId
|
||||
if (gameObjTarget)
|
||||
{
|
||||
GameObjectInfo const* goInfo = gameObjTarget->GetGOInfo();
|
||||
GameObjectTemplate const* goInfo = gameObjTarget->GetGOInfo();
|
||||
// Arathi Basin banner opening !
|
||||
if ((goInfo->type == GAMEOBJECT_TYPE_BUTTON && goInfo->button.noDamageImmune) ||
|
||||
(goInfo->type == GAMEOBJECT_TYPE_GOOBER && goInfo->goober.losOK))
|
||||
@@ -6340,7 +6340,7 @@ void Spell::EffectTransmitted(SpellEffIndex effIndex)
|
||||
{
|
||||
uint32 name_id = m_spellInfo->EffectMiscValue[effIndex];
|
||||
|
||||
GameObjectInfo const* goinfo = ObjectMgr::GetGameObjectInfo(name_id);
|
||||
GameObjectTemplate const* goinfo = sObjectMgr->GetGameObjectTemplate(name_id);
|
||||
|
||||
if (!goinfo)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user