Core/Spells: Load spell label data for future use
Port From (https://github.com/TrinityCore/TrinityCore/commit/e1f3f1254c3214c0a5b71db6de33f8900903d314)
This commit is contained in:
@@ -277,6 +277,7 @@ namespace Game.DataStorage
|
||||
SpellInterruptsStorage = ReadDB2<SpellInterruptsRecord>("SpellInterrupts.db2", HotfixStatements.SEL_SPELL_INTERRUPTS);
|
||||
SpellItemEnchantmentStorage = ReadDB2<SpellItemEnchantmentRecord>("SpellItemEnchantment.db2", HotfixStatements.SEL_SPELL_ITEM_ENCHANTMENT, HotfixStatements.SEL_SPELL_ITEM_ENCHANTMENT_LOCALE);
|
||||
SpellItemEnchantmentConditionStorage = ReadDB2<SpellItemEnchantmentConditionRecord>("SpellItemEnchantmentCondition.db2", HotfixStatements.SEL_SPELL_ITEM_ENCHANTMENT_CONDITION);
|
||||
SpellLabelStorage = ReadDB2<SpellLabelRecord>("SpellLabel.db2", HotfixStatements.SEL_SPELL_LABEL);
|
||||
SpellLearnSpellStorage = ReadDB2<SpellLearnSpellRecord>("SpellLearnSpell.db2", HotfixStatements.SEL_SPELL_LEARN_SPELL);
|
||||
SpellLevelsStorage = ReadDB2<SpellLevelsRecord>("SpellLevels.db2", HotfixStatements.SEL_SPELL_LEVELS);
|
||||
SpellMiscStorage = ReadDB2<SpellMiscRecord>("SpellMisc.db2", HotfixStatements.SEL_SPELL_MISC);
|
||||
@@ -642,6 +643,7 @@ namespace Game.DataStorage
|
||||
public static DB6Storage<SpellInterruptsRecord> SpellInterruptsStorage;
|
||||
public static DB6Storage<SpellItemEnchantmentRecord> SpellItemEnchantmentStorage;
|
||||
public static DB6Storage<SpellItemEnchantmentConditionRecord> SpellItemEnchantmentConditionStorage;
|
||||
public static DB6Storage<SpellLabelRecord> SpellLabelStorage;
|
||||
public static DB6Storage<SpellLearnSpellRecord> SpellLearnSpellStorage;
|
||||
public static DB6Storage<SpellLevelsRecord> SpellLevelsStorage;
|
||||
public static DB6Storage<SpellMiscRecord> SpellMiscStorage;
|
||||
|
||||
@@ -359,6 +359,13 @@ namespace Game.DataStorage
|
||||
public byte[] Logic = new byte[5];
|
||||
}
|
||||
|
||||
public sealed class SpellLabelRecord
|
||||
{
|
||||
public uint Id;
|
||||
public uint LabelID;
|
||||
public int SpellID;
|
||||
}
|
||||
|
||||
public sealed class SpellLearnSpellRecord
|
||||
{
|
||||
public uint Id;
|
||||
|
||||
Reference in New Issue
Block a user