FFACETools.FFACE.GetSpellRecast C# (CSharp) Method

GetSpellRecast() private method

private GetSpellRecast ( int instanceID, SpellList index ) : short
instanceID int
index SpellList
return short
        private static extern short GetSpellRecast(int instanceID, SpellList index);

Usage Example

Example #1
0
            } // @ public short GetSpellRecast(short id)

            /// <summary>
            /// Will get the time left in seconds before being able to recast a spell
            /// </summary>
            /// <param name="spell">Spell to check recast timer on</param>
            public short GetSpellRecast(SpellList spell)
            {
                // get recast time from fface
                short time = FFACE.GetSpellRecast(_InstanceID, spell);

                // FFACE seems to return the recast 1 second shorter then it is
                if (0 < time)
                {
                    time += 60;
                }

                return((short)(time / 60));
            } // @ public TimeSpan GetSpellRecast(eSpellList spell)
FFACE