Core/Collision: Solve collision issues with GAMEOBJECT_TYPE_DOOR GOs

This commit is contained in:
Trisjdc
2014-05-25 11:35:51 +01:00
parent f091713086
commit 0ce6824a86

View File

@@ -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;