aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/GameObject.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp
index 01383ade0b3..7c328e81145 100644
--- a/src/game/GameObject.cpp
+++ b/src/game/GameObject.cpp
@@ -1024,6 +1024,9 @@ void GameObject::Use(Unit* user)
// possible quest objective for active quests
player->CastedCreatureOrGO(info->id, GetGUID(), 0);
+
+ if (info->goober.eventId)
+ sWorld.ScriptsStart(sEventScripts, info->goober.eventId, player, this);
}
// cast this spell later if provided
@@ -1045,6 +1048,9 @@ void GameObject::Use(Unit* user)
if (info->camera.cinematicId)
player->SendCinematicStart(info->camera.cinematicId);
+ if (info->camera.eventID)
+ sWorld.ScriptsStart(sEventScripts, info->camera.eventID, player, this);
+
return;
}
//fishing bobber