public void SetAsTarget() { //var allocatedMemory = (uint) Marshal.AllocHGlobal(0x10); //GeneralHelper.WriteGUID(allocatedMemory, Guid); //WoWFunctions._setTarget(allocatedMemory); WoWFunctions._setTarget(Guid); //Marshal.FreeHGlobal((IntPtr)allocatedMemory); }
public void Cast(WoWUnit target) { if (!IsValid) { return; } if (target == null || !target.IsValid) { return; } WoWFunctions._setTarget(target.Guid); WoWLua.ExecuteBuffer(string.Format("CastSpellByID(\"{0}\")", Id)); }