Core/Scripts: Reworked scripts. More to come.

This commit is contained in:
hondacrx
2021-02-18 11:57:11 -05:00
parent 1e2b303b35
commit 03456fb574
19 changed files with 2158 additions and 704 deletions
+6 -6
View File
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2012-2020 CypherCore <http://github.com/CypherCore>
*
* This program is free software: you can redistribute it and/or modify
@@ -19,9 +19,9 @@ using Game;
using Game.Entities;
using Game.Scripting;
namespace Scripts.World
namespace Scripts.World.SceneScripts
{
struct SceneSpells
struct SpellIds
{
public const uint DeathwingSimulator = 201184;
}
@@ -34,8 +34,8 @@ namespace Scripts.World
// Called when a player receive trigger from scene
public override void OnSceneTriggerEvent(Player player, uint sceneInstanceID, SceneTemplate sceneTemplate, string triggerName)
{
if (triggerName == "BURN PLAYER")
player.CastSpell(player, SceneSpells.DeathwingSimulator, true); // Deathwing Simulator Burn player
if (triggerName == "Burn Player")
player.CastSpell(player, SpellIds.DeathwingSimulator, true); // Deathwing Simulator Burn player
}
}
}
}