Changeset 1138

Show
Ignore:
Timestamp:
01/31/2010 03:43:21 AM (7 months ago)
Author:
azolex
Message:

* FIXED: Gundrak, last boss combat doors will now properly close/open on combat start/end

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Trunk/src/InstanceScripts/Instance_Gundrak.cpp

    r1129 r1138  
    6464        uint32          mColossusStatueGUID; 
    6565        uint32          mMoorabiAltarGUID; 
    66         uint32          mMoorabiStatueGUID;      
     66        uint32          mMoorabiStatueGUID; 
    6767 
    6868        uint32          mEckDoorsGUID; 
     
    7171        uint32      mCoilisionGUID; 
    7272 
     73    uint32      mCombatDoorsGUID; 
    7374        uint32          mDoor1GUID; 
    7475        uint32          mDoor2GUID; 
     
    9798                mCoilisionGUID = 0; 
    9899 
     100        mCombatDoorsGUID = 0; 
    99101                mDoor1GUID = 0; 
    100102                mDoor2GUID = 0; 
     
    198200                                pGameObject->SetFlag( GAMEOBJECT_FLAGS,GO_FLAG_UNCLICKABLE ); 
    199201                        }break; 
     202        case 192568: 
     203            mCombatDoorsGUID = pGameObject->GetLowGUID(); 
     204            break; 
    200205                } 
    201206        }; 
     
    259264                        return; 
    260265 
    261                 GameObject* pDoors = GetGameObjectBySqlId( 192568 ); 
     266                GameObject* pDoors = GetGameObjectByGuid( mCombatDoorsGUID ); 
    262267                if( !pDoors ) 
    263268                        return;