public WoWSpell(int id) { try { SpellRecord = WoWDB.GetTable(ClientDB.Spell).GetRow(id).GetStruct <SpellRec>(); } catch { SpellRecord = default(SpellRec); } }
internal void Validate(IntPtr pointer) { Pointer = pointer; Entry = Helper.Magic.ReadStruct <AuraStruct>(Pointer); ID = Entry.AuraId; var SpellRow = WoWDB.GetTable(ClientDB.Spell).GetRow(Entry.AuraId); if (SpellRow != null) { Name = SpellRow.GetStruct <SpellRec>().Name; } else { Name = "unknown"; } }