Esempio n. 1
0
        public void SetAsTarget()
        {
            //var allocatedMemory = (uint) Marshal.AllocHGlobal(0x10);

            //GeneralHelper.WriteGUID(allocatedMemory, Guid);
            //WoWFunctions._setTarget(allocatedMemory);
            WoWFunctions._setTarget(Guid);
            //Marshal.FreeHGlobal((IntPtr)allocatedMemory);
        }
Esempio n. 2
0
        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));
        }