Skip to content

Commit

Permalink
feat: Added IsAnyFateActive script condition
Browse files Browse the repository at this point in the history
  • Loading branch information
domesticwarlord86 committed Jul 9, 2024
1 parent 0dc3b45 commit b38221a
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions ScriptConditions/Extras.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ public static bool IsFateActive(int fateID)
return FateManager.ActiveFates.Any(i => i.Id == (uint)fateID);
}

public static bool IsAnyFateActive()
{
return FateManager.ActiveFates.Any();
}

public static bool IsLeveActive(int leveId)
{
if (DirectorManager.ActiveDirector == null)
Expand Down Expand Up @@ -245,8 +250,8 @@ ClassJobType.Pugilist or ClassJobType.Monk or ClassJobType.Lancer or ClassJobTyp
#if RB_DT
or ClassJobType.Viper
#endif
=> true,
_ => false
=> true,
_ => false
};
}

Expand All @@ -258,8 +263,8 @@ ClassJobType.Arcanist or ClassJobType.Summoner or ClassJobType.Thaumaturge or Cl
#if RB_DT
or ClassJobType.Pictomancer
#endif
=> true,
_ => false
=> true,
_ => false
};
}

Expand Down Expand Up @@ -365,7 +370,7 @@ public static bool IsMVPVoteReady()

public static bool IsInNPCParty()
{
return PartyManager.VisibleMembers.Any(i=> i.GetType() == typeof(TrustPartyMember));
return PartyManager.VisibleMembers.Any(i => i.GetType() == typeof(TrustPartyMember));
}
}
}

0 comments on commit b38221a

Please sign in to comment.