Added GroupAIFlags Based on TrinityCore

This commit is contained in:
hondacrx
2017-06-26 14:39:14 -04:00
parent 58989e0fcc
commit 1713c12684
3 changed files with 17 additions and 10 deletions
+4 -4
View File
@@ -4123,9 +4123,9 @@ namespace Game.Entities
}
uint spellId = aura.GetId();
var range = m_ownedAuras.Where(p => p.Key == spellId);
foreach (var pair in range)
var range = m_ownedAuras.Where(p => p.Key == spellId);
foreach (var pair in range.ToList())
{
if (pair.Value == aura)
{
@@ -4235,9 +4235,9 @@ namespace Game.Entities
return;
uint spellId = aurApp.GetBase().GetId();
var range = m_appliedAuras.Where(p => p.Key == spellId);
foreach (var pair in range)
var range = m_appliedAuras.Where(p => p.Key == spellId);
foreach (var pair in range.ToList())
{
if (aurApp == pair.Value)
{