Beispiel #1
0
        internal SpellData RemoveAura(uint spellId)
        {
            var aura = auras.FirstOrDefault(x => x.SpellId == spellId);

            if (aura == null)
            {
                return(null);
            }

            auras.Remove(aura);
            SpellAurasChanged?.Invoke();
            return(aura);
        }
Beispiel #2
0
 internal void ApplyAura(SpellData spellData)
 {
     auras.Add(spellData);
     SpellAurasChanged?.Invoke();
 }