internal bool CanDispel(Aura otherAura) { // check for auras that ignore immunities and can't be dispelled if (!SpellInfo.CanDispelAura(otherAura.SpellInfo)) { return(false); } // don't dispel self if (this == otherAura) { return(false); } // don't dispel passives if (otherAura.SpellInfo.IsPassive) { return(false); } // don't dispel same positivity effects if (otherAura.AuraInfo.IsPositive == AuraInfo.IsPositive) { return(false); } return(true); }