Let daemon reject action bar intent indices

This commit is contained in:
Meta Vens 2026-06-21 12:22:29 +01:00
commit 16b7c9334a
3 changed files with 44 additions and 12 deletions

View file

@ -3956,7 +3956,7 @@ public class ActionGameManager : MonoBehaviour
public bool TryRequestDaemonActionBarBehavior(int equipmentIndex, int behaviorIndex, bool active)
{
var observer = ResolveDaemonObserver();
if (observer == null || !observer.HasAuthoritativeState || equipmentIndex < 0 || behaviorIndex < 0)
if (observer == null || !observer.HasAuthoritativeState)
{
return false;
}
@ -3976,7 +3976,7 @@ public class ActionGameManager : MonoBehaviour
public bool TryRequestDaemonActionBarWeaponGroup(int weaponGroup, bool active)
{
var observer = ResolveDaemonObserver();
if (observer == null || !observer.HasAuthoritativeState || weaponGroup < 0)
if (observer == null || !observer.HasAuthoritativeState)
{
return false;
}