Core/GameObject: Store unit in GameObject::SetLootState - required for trap activation.

This commit is contained in:
Gacko
2014-05-05 18:39:53 +02:00
parent d0e6693266
commit c6bf7e0b1d
2 changed files with 2 additions and 0 deletions
@@ -2015,6 +2015,7 @@ void GameObject::SetDestructibleState(GameObjectDestructibleState state, Player*
void GameObject::SetLootState(LootState state, Unit* unit)
{
m_lootState = state;
m_lootStateUnit = unit;
AI()->OnStateChanged(state, unit);
sScriptMgr->OnGameObjectLootStateChanged(this, state, unit);
if (m_model)