mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[7933] Call goober GO event script not only at open spell cast, also really call camera GO event scripts.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
7d6bf1fdbf
commit
bfafee5263
2 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue