public List <AURA> getAuras(uint unit) { List <AURA> result = new List <AURA>(); AURA A = new AURA(); uint auraTable = unit + AURA_TABLE_1; //aura list & count has 2 possible locations uint auraCount = wow.ReadUInt(unit + AURA_COUNT_1); if (auraCount > 80) { auraTable = wow.ReadUInt(unit + AURA_TABLE_2); //and the second one auraCount = wow.ReadUInt(unit + AURA_COUNT_2); } for (uint i = 0; i < auraCount; i++) { uint spellId = wow.ReadUInt(auraTable + AURA_SIZE * i + AURA_SPELL_ID); if (spellId > 0) { UInt64 creatorGUID = wow.ReadUInt64(auraTable + AURA_SIZE * i); A.auraId = spellId; A.creatorGuid = creatorGUID; result.Add(A); } } return(result); }
public int AuraStacks(AURA which) { return(myAura[(int)which].stacks); }
public bool AuraActive(AURA which) { return(myAura[(int)which].isActive); }
public List<AURA> getAuras(uint unit) { List<AURA> result = new List<AURA>(); AURA A = new AURA(); uint auraTable = unit + AURA_TABLE_1; //aura list & count has 2 possible locations uint auraCount = wow.ReadUInt(unit + AURA_COUNT_1); if (auraCount > 80) { auraTable = wow.ReadUInt(unit + AURA_TABLE_2); //and the second one auraCount = wow.ReadUInt(unit + AURA_COUNT_2); } for (uint i = 0; i < auraCount; i++) { uint spellId = wow.ReadUInt(auraTable + AURA_SIZE * i + AURA_SPELL_ID); if (spellId > 0) { UInt64 creatorGUID = wow.ReadUInt64(auraTable + AURA_SIZE * i); A.auraId = spellId; A.creatorGuid = creatorGUID; result.Add(A); } } return result; }