Core/Scenes: Fix scenes played by package id
Port From (https://github.com/TrinityCore/TrinityCore/commit/2906926173fcab2b18d1a1b5cd0d94dc82dc1e2e)
This commit is contained in:
@@ -5537,14 +5537,10 @@ namespace Game.Spells
|
|||||||
if (!player)
|
if (!player)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
SceneTemplate sceneTemplate = Global.ObjectMgr.GetSceneTemplate((uint)GetMiscValue());
|
|
||||||
if (sceneTemplate == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (apply)
|
if (apply)
|
||||||
player.GetSceneMgr().PlaySceneByTemplate(sceneTemplate);
|
player.GetSceneMgr().PlayScene((uint)GetMiscValue());
|
||||||
else
|
else
|
||||||
player.GetSceneMgr().CancelSceneByPackageId(sceneTemplate.ScenePackageId);
|
player.GetSceneMgr().CancelSceneBySceneId((uint)GetMiscValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
[AuraEffectHandler(AuraType.AreaTrigger)]
|
[AuraEffectHandler(AuraType.AreaTrigger)]
|
||||||
|
|||||||
Reference in New Issue
Block a user