private void ReadEffects() { // Check if spells were originally blocked bool spellsWereBlocked = locks.HasFlag(Locks.Spells); locks = Locks.NONE; foreach (var e in effects) { // Resets CCs & then reads them every frame locks = locks.SetFlag(e.Value); } // Check if spells are NOW originally blocked bool spellsAreBlocked = locks.HasFlag(Locks.Spells); if (spellsWereBlocked && !spellsAreBlocked) { SwitchCrystal(value: true); } }