Skip to content

Instantly share code, notes, and snippets.

@Konctantin
Created May 11, 2011 17:51
Show Gist options
  • Select an option

  • Save Konctantin/966944 to your computer and use it in GitHub Desktop.

Select an option

Save Konctantin/966944 to your computer and use it in GitHub Desktop.
private string GetAuras(WoWObject obj)
{
List<uint> content = new List<uint>();
if (Auras.ContainsKey(obj.WowGuid))
{
foreach (AuraUpdate spellInfo in Auras[obj.WowGuid].Updates)
{
if (spellInfo.SpellId > 0 && (spellInfo.Flags & AuraFlags.NotCaster) != 0)
{
for (int i = 0; i < AuraUpdate.MAX_EFFECT_INDEX; ++i)
{
if ((spellInfo.Flags & AuraFlags.EffectIndex_0 + i) != 0)
{
if (!content.Contains(spellInfo.SpellId))
{
content.Add(spellInfo.SpellId);
}
}
}
}
}
}
return string.Join<uint>(" ", content);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment