Example #1
0
        internal void Dispose()
        {
            SpellState = SpellState.Disposed;

            SpellInfo = null;
            Caster    = OriginalCaster = null;
            appliedModifierAuras.Clear();
            chargeDroppedModifierAuras.Clear();

            ImplicitTargets.Dispose();
            ExplicitTargets.Dispose();
        }
Example #2
0
        internal void Dispose()
        {
            SpellState = SpellState.Disposed;

            SpellInfo = null;
            Caster    = OriginalCaster = null;
            appliedModifierAuras.Clear();
            chargeDroppedModifierAuras.Clear();
            appliedModifiers.Clear();
            unappliedModifiers.Clear();

            ListPoolContainer <(SpellPowerType, int)> .Return(powerCosts);

            powerCosts = null;

            ImplicitTargets.Dispose();
            ExplicitTargets.Dispose();
        }