Core/SmartScripts: Implement SMART_ACTION_PLAY_CINEMATIC

Port From (https://github.com/TrinityCore/TrinityCore/commit/dad95d16b263b9c1cb8df6edac8043138fb4da9e)
This commit is contained in:
hondacrx
2021-12-01 11:44:02 -05:00
parent 8701a862cc
commit a04e405383
3 changed files with 29 additions and 1 deletions
@@ -2438,6 +2438,17 @@ namespace Game.AI
break;
}
case SmartActions.PlayCinematic:
{
foreach (WorldObject target in targets)
{
if (!IsPlayer(target))
continue;
target.ToPlayer().SendCinematicStart(e.Action.cinematic.entry);
}
break;
}
default:
Log.outError(LogFilter.Sql, "SmartScript.ProcessAction: Entry {0} SourceType {1}, Event {2}, Unhandled Action type {3}", e.EntryOrGuid, e.GetScriptType(), e.EventId, e.GetActionType());
break;