コード例 #1
0
ファイル: Warlock.cs プロジェクト: drolean/Aesha-1
        public void AttackBehaviour()
        {
            var target = ObjectManager.Me.Target;

            _commandManager.SetPlayerFacing(ObjectManager.Me.Target?.Location);
            _commandManager.EvaluateAndPerform(CastPetAttack);
            _commandManager.EvaluateAndPerform(CastCorruption);
            _commandManager.EvaluateAndPerform(CastCurseOfAgony);
            _commandManager.EvaluateAndPerform(CastImmolate);
            //_commandManager.EvaluateAndPerform(CastShadowBolt);
            //_commandManager.EvaluateAndPerform(CastWand);

            while (ObjectManager.Me.Target?.Health?.Current > 0)
            {
                _commandManager.EvaluateAndPerform(CastShadowBolt);
            }

            _lootManager.Loot(target);
            _skinningManager.Skin(target);
        }