Skip to content

Commit

Permalink
Merge pull request #591 from xanunderscore/smartrot0
Browse files Browse the repository at this point in the history
SmartRotationTweak: check action range
  • Loading branch information
xanunderscore authored Feb 7, 2025
2 parents 569f590 + 9ed71df commit 421444d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BossMod/ActionTweaks/SmartRotationTweak.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public sealed class SmartRotationTweak(WorldState ws, AIHints hints)
public Angle? GetSpellOrientation(uint spellId, WPos playerPos, bool targetIsSelf, WPos? targetPos, WPos targetLoc)
{
var data = Service.LuminaRow<Lumina.Excel.Sheets.Action>(spellId);
if (data == null || !data.Value.NeedToFaceTarget) // does not require facing
if (data == null || !data.Value.NeedToFaceTarget || data.Value.Range == 0) // does not require facing
return null;
if (data.Value.TargetArea)
return Angle.FromDirection(targetLoc - playerPos);
Expand Down

0 comments on commit 421444d

Please sign in to comment.