From bfafee52630f962fa12cc2deda8dcc41e25f1c1a Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Mon, 1 Jun 2009 05:28:37 +0400 Subject: [PATCH] [7933] Call goober GO event script not only at open spell cast, also really call camera GO event scripts. Signed-off-by: VladimirMangos --- src/game/GameObject.cpp | 6 ++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index a0b49afce..d08d6f9c0 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -956,6 +956,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 @@ -977,6 +980,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 diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 27eb3b050..961b33272 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7932" + #define REVISION_NR "7933" #endif // __REVISION_NR_H__