예제 #1
0
        public void Initialize(IClassRotation specialization)
        {
            settings = MageSettings.Current;
            if (settings.PartyDrinkName != "")
            {
                ToolBox.AddToDoNotSellList(settings.PartyDrinkName);
            }
            cast         = new Cast(Fireball, UseWand, settings);
            _foodManager = new MageFoodManager(cast);

            this.specialization          = specialization as Mage;
            (RotationType, RotationRole) = ToolBox.GetRotationType(specialization);
            TalentsManager.InitTalents(settings);

            RangeManager.SetRange(30);

            FightEvents.OnFightEnd   += FightEndHandler;
            FightEvents.OnFightStart += FightStartHandler;
            FightEvents.OnFightLoop  += FightLoopHandler;

            Rotation();
        }