Hi gues, I am trying to make my LifeBloom be cast on my focus taget at all times. Need a string that sets Tank as my current focus target.
The code I got so fare is. Cant get it to work. Plz help me
#region get tanks
List<WoWPlayer> getTanks()
{
List<WoWPlayer> ret = new List<WoWPlayer>();
public bool CastSpell(string name, wManager.Wow.ObjectManager.WoWObject obj)
{
if (!string.IsNullOrWhiteSpace(name) && obj != null)
{
var tmp = wManager.Wow.ObjectManager.ObjectManager.Me.FocusGuid;
wManager.Wow.ObjectManager.ObjectManager.Me.FocusGuid = obj.Guid;
new wManager.Wow.Class.Spell(name).Launch(false, false, false, "focus");
wManager.Wow.ObjectManager.ObjectManager.Me.FocusGuid = tmp;
WoWPlayer p = new WoWPlayer(unit.GetBaseAddress);
ret.Add();
}
return false;
}
}
#endregion