using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Media;
using Styx;
using Styx.Common;
using Styx.CommonBot;
using Styx.Plugins;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
namespace XSOL
{
class PathOfFrost : HBPlugin
{
public override string Name { get { return "PathOfFrost"; } }
public override string Author { get { return "xsol"; } }
public override Version Version { get { return new Version(1, 0, 0, 0); } }
public override bool WantButton { get { return true; } }
public override string ButtonText { get { return "N/A"; } }
private static LocalPlayer me = StyxWoW.Me;
public PathOfFrost()
{
}
public DateTime lastuse = DateTime.Now;
public override void Pulse()
{
if (!StyxWoW.IsInGame)
{
return;
}
if (!me.Combat)
{
if (!me.Buffs.ContainsKey("Path of Frost"))
{
if(lastuse.AddSeconds(7) < DateTime.Now) {
SpellManager.Cast("Path of Frost");
lastuse = DateTime.Now;
}
}
}
}
public override void OnButtonPress()
{
}
}
}