Skip to content

Commit

Permalink
Merge pull request #405 from FFXIV-CombatReborn/NPC-heal-defaults
Browse files Browse the repository at this point in the history
Rename and update default for friendly NPC heal config for Autoduty users
  • Loading branch information
LTS-FFXIV authored Sep 24, 2024
2 parents b2a6661 + ae3b379 commit 575c62c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Configuration/Configs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ public const string

[ConditionBool, UI("Heal and raise Party NPCs.",
Filter = HealingActionCondition, Section = 3)]
private static readonly bool _friendlyPartyNPCHeal = false;
private static readonly bool _friendlyPartyNPCHealRaise = true;

[ConditionBool, UI("Heal/Dance partner your chocobo. (Experimental)",
Filter = HealingActionCondition, Section = 3)]
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver.Basic/DataCenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ public static IBattleChara? DeathTarget
return deathAll.FirstOrDefault();
}

if (deathNPC.Any() && Service.Config.FriendlyPartyNpcHeal)
if (deathNPC.Any() && Service.Config.FriendlyPartyNpcHealRaise)
{
var deathNPCT = deathNPC.GetJobCategory(JobRole.Tank).ToList();
var deathNPCH = deathNPC.GetJobCategory(JobRole.Healer).ToList();
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Helpers/ObjectHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ internal static bool IsParty(this IGameObject gameObject)
// Accessing Player.Object and Svc.Party within the lock to ensure thread safety
if (gameObject.GameObjectId == Player.Object?.GameObjectId) return true;
if (Svc.Party.Any(p => p.GameObject?.GameObjectId == gameObject.GameObjectId)) return true;
if (Service.Config.FriendlyPartyNpcHeal && gameObject.GetBattleNPCSubKind() == BattleNpcSubKind.NpcPartyMember) return true;
if (Service.Config.FriendlyPartyNpcHealRaise && gameObject.GetBattleNPCSubKind() == BattleNpcSubKind.NpcPartyMember) return true;

// Check if ChocoboPartyMember is enabled
if (Service.Config.ChocoboPartyMember)
Expand Down

0 comments on commit 575c62c

Please sign in to comment.