Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: add sage shield status.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Feb 20, 2024
1 parent eb86c34 commit b51e1ae
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
5 changes: 2 additions & 3 deletions RotationSolver.Basic/Helpers/ObjectHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,8 @@ public static unsafe bool IsEnemy(this GameObject obj)
/// <returns></returns>
public static unsafe bool IsAlliance(this GameObject obj)
=> obj != null && obj.ObjectId is not 0 and not GameObject.InvalidGameObjectId
&& ((DataCenter.Territory?.IsPvpZone ?? false)
? ActionManager.CanUseActionOnTarget((uint)ActionID.CurePvE, obj.Struct())
: obj is PlayerCharacter);
&& (!(DataCenter.Territory?.IsPvpZone ?? false) && obj is PlayerCharacter
|| ActionManager.CanUseActionOnTarget((uint)ActionID.CurePvE, obj.Struct()));

public static bool IsParty(this GameObject gameObject)
{
Expand Down
5 changes: 5 additions & 0 deletions RotationSolver.Basic/Rotations/Basic/SageRotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ protected static bool AddersgallEndAfterGCD(uint gctCount = 0, float offset = 0)
#endregion
private protected sealed override IBaseAction Raise => EgeiroPvE;

static partial void ModifyEukrasianDiagnosisPvE(ref ActionSetting setting)
{
setting.TargetType = TargetType.BeAttacked;
}

static partial void ModifyEukrasianDosisPvE(ref ActionSetting setting)
{
setting.TargetStatusProvide =
Expand Down
8 changes: 4 additions & 4 deletions RotationSolver/Localization/Localization.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"RotationSolver.Data.UiString.ConfigWindow_About_Links": "Links",
"RotationSolver.UI.RotationConfigWindowTab.Debug": "Debug",
"InDebugName": "Debug Mode",
"InDebugDescription": "",
"RotationSolver.UI.RotationConfigWindowTab.Basic": "Basic settings",
"RotationSolver.UI.RotationConfigWindowTab.Rotations": "All rotations that RS has loaded.",
"RotationSolver.UI.RotationConfigWindowTab.Extra": "Some features that shouldn't be included in RS but help you.",
"RotationSolver.UI.RotationConfigWindowTab.Target": "The way to find the targets, hostiles or friends.",
"RotationSolver.UI.RotationConfigWindowTab.UI": "Settings about the user interface."
"RotationSolver.UI.RotationConfigWindowTab.UI": "Settings about the user interface.",
"RotationSolver.UI.RotationConfigWindowTab.Basic": "Basic settings",
"RotationSolver.UI.RotationConfigWindowTab.Auto": "About some general actions usage and conditions."
}

0 comments on commit b51e1ae

Please sign in to comment.