Created
April 18, 2011 13:18
-
-
Save Konctantin/925307 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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