Beispiel #1
0
        public override void Execute(Obj_AI_Hero target)
        {
            if (_e.CanBeCast() && _e.IsKillable(target))
            {
                return;
            }

            if (!OnlyQWhenNotPoisoned || !target.IsPoisoned())
            {
                Cast(target);
            }
        }
Beispiel #2
0
        public override void Execute(AIHeroClient target)
        {
            if (_e.CanBeCast() && _e.IsKillable(target))
            {
                return;
            }

            var bestPosition = GetBestPosition(HeroManager.Enemies);

            if (Math.Abs(bestPosition.Item1.X) > 1)
            {
                Cast(bestPosition.Item1);
            }
        }