diff options
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r-- | src/game/GameObject.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index 1f3932c4f0f..53b0dc5812a 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -1137,6 +1137,7 @@ void GameObject::Use(Unit* user) { sLog.outDebug("Goober ScriptStart id %u for GO entry %u (GUID %u).", info->goober.eventId, GetEntry(), GetDBTableGUIDLow()); GetMap()->ScriptsStart(sEventScripts, info->goober.eventId, player, this); + EventInform(info->goober.eventId); } // possible quest objective for active quests @@ -1147,10 +1148,8 @@ void GameObject::Use(Unit* user) break; } - if (BattleGround* bg = player->GetBattleGround()) - { - bg->EventPlayerUsedGO(player, this); - } + if (BattleGround* bg = player->GetBattleGround()) + bg->EventPlayerUsedGO(player, this); player->CastedCreatureOrGO(info->id, GetGUID(), 0); } |