Code:
public enum OtherField : uint
{
IsCasting = 0xA68, //The same in path 3.2.2 as in 3.2a
ChanneledCasting = 0xA80, //The same in path 3.2.2 as in 3.2a
}
/// <summary>
/// Checks if Unit is casting and returns an int of the spellID being cast
/// </summary>
public int IsCasting {
get
{
uint pointer = ObjectPointer + (uint)GDescriptors.OtherField.IsCasting;
return Memory.ReadInt(pointer);
}
}
/// <summary>
/// Returns true if Casting false if not.
/// </summary>
public bool Casting {
get
{
return (IsCasting != 0 || ChanneledCasting != 0);
}
}
/// <summary>
/// Returns the current ID of the spell Channeled.
/// </summary>
public int ChanneledCasting
{
get
{
return Memory.ReadInt(ObjectPointer + (uint)GDescriptors.OtherField.ChanneledCasting);
}
}