Fix combat action prediction (#19152)
* Fix action predictions * Add ActionsAddedTest
This commit is contained in:
@@ -126,9 +126,6 @@ namespace Content.Client.Actions
|
||||
|
||||
public override void AddAction(EntityUid uid, ActionType action, EntityUid? provider, ActionsComponent? comp = null, bool dirty = true)
|
||||
{
|
||||
if (GameTiming.ApplyingState && !action.ClientExclusive)
|
||||
return;
|
||||
|
||||
if (!Resolve(uid, ref comp, false))
|
||||
return;
|
||||
|
||||
|
||||
@@ -390,7 +390,7 @@ public sealed class ActionUIController : UIController, IOnStateChanged<GameplayS
|
||||
|
||||
private void OnActionAdded(ActionType action)
|
||||
{
|
||||
// if the action is toggled when we add it, start targetting
|
||||
// if the action is toggled when we add it, start targeting
|
||||
if (action is TargetedAction targetAction && action.Toggled)
|
||||
StartTargeting(targetAction);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user