mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Collision: Solve collision issues with GAMEOBJECT_TYPE_DOOR GOs
This commit is contained in:
@@ -2013,6 +2013,10 @@ void GameObject::SetLootState(LootState state, Unit* unit)
|
||||
m_lootStateUnitGUID = unit ? unit->GetGUID() : 0;
|
||||
AI()->OnStateChanged(state, unit);
|
||||
sScriptMgr->OnGameObjectLootStateChanged(this, state, unit);
|
||||
|
||||
if (GetGoType() == GAMEOBJECT_TYPE_DOOR) // only set collision for doors on SetGoState
|
||||
return;
|
||||
|
||||
if (m_model)
|
||||
{
|
||||
bool collision = false;
|
||||
|
||||
Reference in New Issue
Block a user