[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:
megamage
2009-06-01 21:50:12 -05:00
parent 4e31ec051d
commit e1058deaed

View File

@@ -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