private static string GetMountSpell(BlizzardMount blizzMount) { // spell ID is the spell which has ON_LEARN var spellId = -1; if (blizzMount.itemSpells != null) { foreach (var spell in blizzMount.itemSpells) { if (spell.trigger == "ON_LEARN") { spellId = spell.spellId; } } } if (spellId <= 0) { return(null); } return(spellId.ToString()); }
public WowHeadMount(BlizzardMount mount) { this.mount = mount; }