Skip to content

Commit

Permalink
reset camera after gaze
Browse files Browse the repository at this point in the history
  • Loading branch information
xanunderscore committed Jul 12, 2024
1 parent c4e590b commit 48fa682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BossMod/AI/AIBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ private void UpdateMovement(Actor player, Actor master, Targeting target, Action
var toDest = _naviDecision.Destination != null ? _naviDecision.Destination.Value - player.Position : new();
var distSq = toDest.LengthSq();
ctrl.NaviTargetPos = _naviDecision.Destination;
//_ctrl.NaviTargetRot = distSq >= 0.01f ? toDest.Normalized() : null;
ctrl.NaviTargetRot = null;
ctrl.NaviTargetVertical = master != player ? master.PosRot.Y : null;
ctrl.AllowInterruptingCastByMovement = player.CastInfo != null && _naviDecision.LeewaySeconds <= (player.CastInfo.FinishAt - WorldState.CurrentTime).TotalSeconds - 0.5;
ctrl.ForceCancelCast = player.CastInfo != null && TargetIsForbidden(player.CastInfo.TargetID);
Expand Down

0 comments on commit 48fa682

Please sign in to comment.