diff --git a/ScriptEditor/GameData.cs b/ScriptEditor/GameData.cs index 93b106e..1d622ac 100644 --- a/ScriptEditor/GameData.cs +++ b/ScriptEditor/GameData.cs @@ -494,7 +494,7 @@ public static void LoadSpells(string connString) MySqlConnection conn = new MySqlConnection(connString); MySqlCommand command = conn.CreateCommand(); - command.CommandText = "SELECT `ID`, `effect1`, `effect2`, `effect3`, `name1`, `description1` FROM `spell_template` WHERE `build`=5875 ORDER BY `ID`"; + command.CommandText = "SELECT `entry`, `effect1`, `effect2`, `effect3`, `name1`, `description1` FROM `spell_template` t1 WHERE `build`=(SELECT max(`build`) FROM `spell_template` t2 WHERE t1.`entry`=t2.`entry` && `build` <= 5875) ORDER BY `entry`"; try { conn.Open(); @@ -621,7 +621,7 @@ public static void LoadFactions(string connString) MySqlConnection conn = new MySqlConnection(connString); MySqlCommand command = conn.CreateCommand(); - command.CommandText = "SELECT `id`, `reputation_list_id`, `team`, `name1`, `description1` FROM `faction` WHERE `build`=5875 ORDER BY `id`"; + command.CommandText = "SELECT `id`, `reputation_list_id`, `team`, `name1`, `description1` FROM `faction` t1 WHERE `build`=(SELECT max(`build`) FROM `faction` t2 WHERE t1.`id`=t2.`id` && `build` <= 5875) ORDER BY `id`"; try { conn.Open(); @@ -646,7 +646,7 @@ public static void LoadFactionTemplates(string connString) MySqlConnection conn = new MySqlConnection(connString); MySqlCommand command = conn.CreateCommand(); - command.CommandText = "SELECT `id`, `faction_id`, `faction_flags` FROM `faction_template` WHERE `build`=5875 ORDER BY `id`"; + command.CommandText = "SELECT `id`, `faction_id`, `faction_flags` FROM `faction_template` t1 WHERE `build`=(SELECT max(`build`) FROM `faction_template` t2 WHERE t1.`id`=t2.`id` && `build` <= 5875) ORDER BY `id`"; try { conn.Open(); diff --git a/ScriptEditor/Properties/AssemblyInfo.cs b/ScriptEditor/Properties/AssemblyInfo.cs index 91e0b67..6cca3af 100644 --- a/ScriptEditor/Properties/AssemblyInfo.cs +++ b/ScriptEditor/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("7.1.0.0")] -[assembly: AssemblyFileVersion("7.1.0.0")] +[assembly: AssemblyVersion("7.2.0.0")] +[assembly: AssemblyFileVersion("7.2.0.0")]