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

This commit is contained in:
Gacko committed 2014-05-05 18:39:53 +02:00
1 parent d0e6693266
commit c6bf7e0b1d
2 files changed
+2

No files matched your search

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