Exemplo n.º 1
0
        public static void Initialize2()
        {
            var learnSpells = new List <Spell>(5900);

            // set TriggerSpells and find TriggerSpell effects
            foreach (var spell in ById)
            {
                if (spell == null)
                {
                    continue;
                }
                spell.Initialize();

                if (spell.IsTeachSpell)
                {
                    learnSpells.Add(spell);
                }
                if (spell.DOEffect != null)
                {
                    DOSpells[spell.SpellId] = spell;
                }
            }

            AuraHandler.RegisterAuraUIDEvaluators();

            // 2nd init
            foreach (var spell in ById)
            {
                if (spell != null)
                {
                    spell.Init2();
                }
            }
            SkillHandler.Initialize2();
        }