aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-01 21:50:12 -0500
committermegamage <none@none>2009-06-01 21:50:12 -0500
commite1058deaedfdf85bab5b3c347f59696a460d8d4e (patch)
treed5a17ade26961cf97b78d1edfd63d14b4f6c8bbb /src
parent4e31ec051d9d55327a617aba6d8841d2f1e4b8d1 (diff)
[7933] Call goober GO event script not only at open spell cast, also really call camera GO event scripts. Author: NoFantasy
--HG-- branch : trunk
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