mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +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
|
// possible quest objective for active quests
|
||||||
player->CastedCreatureOrGO(info->id, GetGUID(), 0);
|
player->CastedCreatureOrGO(info->id, GetGUID(), 0);
|
||||||
|
|
||||||
|
if (info->goober.eventId)
|
||||||
|
sWorld.ScriptsStart(sEventScripts, info->goober.eventId, player, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
// cast this spell later if provided
|
// cast this spell later if provided
|
||||||
|
|
@ -977,6 +980,9 @@ void GameObject::Use(Unit* user)
|
||||||
if (info->camera.cinematicId)
|
if (info->camera.cinematicId)
|
||||||
player->SendCinematicStart(info->camera.cinematicId);
|
player->SendCinematicStart(info->camera.cinematicId);
|
||||||
|
|
||||||
|
if (info->camera.eventID)
|
||||||
|
sWorld.ScriptsStart(sEventScripts, info->camera.eventID, player, this);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//fishing bobber
|
//fishing bobber
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7932"
|
#define REVISION_NR "7933"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue