Example #1
0
        public override void Pull(WoWUnit target)
        {
            if (!target.CanBeKilled() || Player.IsCasting())
            {
                return;
            }

            if (!target.Equals(Target))
            {
                Player.SetTarget(target);
            }

            SpellBook.Cast(SpellNames.FrostBolt);
        }
Example #2
0
        public override void Pull(WoWUnit target)
        {
            if (!target.CanBeKilled() || Player.IsCasting())
            {
                return;
            }

            if (Player.IsInCombat && SpellBook.IsSpellReady(SpellNames.EarthShock) && target.InRange(20))
            {
                SpellBook.Cast(SpellNames.EarthShock);
                return;
            }

            if (!Player.IsInCombat && Player.ManaPercent > 60 && SpellBook.IsSpellReady(SpellNames.LightningBolt) && target.InRange(28))
            {
                SpellBook.Cast(SpellNames.LightningBolt);
                return;
            }

            _combatPosition = Enums.CombatPosition.Before;
            SpellBook.Attack();
        }