Skip to content

Commit

Permalink
Add AdjustedTotalCastTime to BattleChara
Browse files Browse the repository at this point in the history
  • Loading branch information
Aireil authored Mar 4, 2024
1 parent 5f62c70 commit f46aa2f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dalamud/Game/ClientState/Objects/Types/BattleChara.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,20 @@ internal BattleChara(IntPtr address)
/// <summary>
/// Gets the total casting time of the spell being cast by the chara.
/// </summary>
/// <remarks>
/// This can only be a portion of the total cast for some actions.
/// Use AdjustedTotalCastTime if you always need the total cast time.
/// </remarks>
public float TotalCastTime => this.Struct->GetCastInfo->TotalCastTime;

/// <summary>
/// Gets the adjusted total casting time of the spell being cast by the chara.
/// </summary>
/// <remarks>
/// This is the actual total cast time for all actions.
/// </remarks>
public float AdjustedTotalCastTime => this.Struct->GetCastInfo->AdjustedTotalCastTime;

/// <summary>
/// Gets the underlying structure.
/// </summary>
Expand Down

0 comments on commit f46aa2f

Please sign in to comment.