示例#1
0
文件: Spells.cs 项目: mozkandemir/RE
        internal static void OnHotKey(ref object state)
        {
            ushort id = (ushort)state;
            Spell  s  = Spell.Get(id);

            if (s != null)
            {
                s.OnCast(new CastSpellFromMacro(id));
            }
        }
示例#2
0
        public static void OnHotKey(ref object state)
        {
            ushort id = (ushort)state;
            Spell  s  = Spell.Get(id);

            if (s != null)
            {
                s.OnCast(new CastSpellFromMacro(id));
                //if ( Macros.MacroManager.AcceptActions )
                //	Macros.MacroManager.Action( new Macros.MacroCastSpellAction( s ) );
            }
        }