Misc fixes!

This commit is contained in:
hondacrx
2021-04-12 15:03:12 -04:00
parent 5daa24a805
commit b0e28e1478
3 changed files with 5 additions and 17 deletions
+1 -13
View File
@@ -4358,24 +4358,12 @@ namespace Game.Entities
return;
}
bool remove = false;
for (var i = 0; i < m_appliedAuras.KeyValueList.Count; i++)
foreach (var app in GetAppliedAuras())
{
var app = m_appliedAuras.KeyValueList[i];
if (remove)
{
remove = false;
i = 0;
}
if (aura.CanStackWith(app.Value.GetBase()))
continue;
RemoveAura(app, AuraRemoveMode.Default);
if (i == m_appliedAuras.KeyValueList.Count - 1)
break;
remove = true;
}
}
public int GetHighestExclusiveSameEffectSpellGroupValue(AuraEffect aurEff, AuraType auraType, bool checkMiscValue = false, int miscValue = 0)