Skip to content

Instantly share code, notes, and snippets.

@Konctantin
Created April 18, 2011 13:18
Show Gist options
  • Save Konctantin/925307 to your computer and use it in GitHub Desktop.
Save Konctantin/925307 to your computer and use it in GitHub Desktop.
private string GetAuras(WoWObject obj)
{
StringBuilder content = new StringBuilder();
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 < 3; ++i)
{
if ((spellInfo.Flags & AuraFlags.EffectIndex_0 + i) != 0)
{
content.AppendFormat("{0} {1} ", spellInfo.SpellId, i);
}
}
}
}
}
return content.ToString().Trim();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment