mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
[7933] Call goober GO event script not only at open spell cast, also really call camera GO event scripts. Author: NoFantasy
--HG-- branch : trunk
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user