<code>
//Quick Shaman attack only CC by Gonemental
using System;
using System.Diagnostics;
using System.Threading;
using System.Linq;
using System.Collections.Generic;
using Styx;
using Styx.Combat.CombatRoutine;
using Styx.Helpers;
using Styx.Logic;
using Styx.Logic.Combat;
using Styx.Logic.Pathing;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using TreeSharp;
namespace Shamanattackonly
{
class Shaman : CombatRoutine
{
public override sealed string Name { get { return "Shaman Attack only"; } }
public override WoWClass Class { get { return WoWClass.Shaman; } }
private static LocalPlayer Me { get { return ObjectManager.Me; } }
public override void Pull()
{
if (StyxWoW.Me.GotTarget && StyxWoW.Me.CurrentTarget.Attackable)
{
Lua.DoString("StartAttack()");
}
}
public void Travel()
{
if (SpellManager.CanCast("Ghost Wolf"))
{
int Distance = (int) Me.Location.Distance(StyxWoW.Me.Location);
if (Distance > 100)
{
GhostWolf();
}
}
}
public override void Combat()
{
if (Me.CurrentTarget == null || Me.CurrentTarget.Dead || !Me.CurrentTarget.IsAlive)
{
Lua.DoString("StartAttack()");
}
if (Me.CurrentTarget.Distance > 5)
Navigator.MoveTo(WoWMathHelper.CalculatePointFrom(ObjectManager.Me.Location, ObjectManager.Me.CurrentTarget.Location, 2.5f));
}
private void GhostWolf()
{
SpellManager.Cast("Ghost Wolf");
}
}
}
</code>
Untested, but I think it will work.