diff --git a/lib/Backend/sensors.dart b/lib/Backend/sensors.dart index d4f109a8..8bc76b1b 100644 --- a/lib/Backend/sensors.dart +++ b/lib/Backend/sensors.dart @@ -284,7 +284,16 @@ abstract class TriggerDefinition extends ChangeNotifier implements Comparable !sentDeviceTypes.contains(element.baseDeviceDefinition.deviceType), ) - .toList() + .where( + (element) { + // filter out devices without a glowtip if its a glowtip action + if ([ActionCategory.glowtip].contains(baseAction.actionCategory)) { + return element.hasGlowtip.value == GlowtipStatus.glowtip; + } + // return remaining gear if action is not a glowtip action + return true; + }, + ).toList() ..shuffle()) { if (HiveProxy.getOrDefault(settings, kitsuneModeToggle, defaultValue: kitsuneModeDefault)) { await Future.delayed(Duration(milliseconds: Random().nextInt(kitsuneDelayRange)));