コード例 #1
0
        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());
        }
コード例 #2
0
 public WowHeadMount(BlizzardMount mount)
 {
     this.mount = mount;
 }