Class HitCountCondition
Condition that evaluates whether an ability object's hit count satisfies a specified comparison.
[Serializable]
public sealed class HitCountCondition : BaseCondition, ICondition
- Inheritance
-
HitCountCondition
- Implements
- Inherited Members
Fields
ComparisonType
The type of comparison to perform with the ability object's hit count.
[Tooltip("The type of comparison to perform with the AbilityObject's HitCount.")]
public HitCountComparisonType ComparisonType
Field Value
RequiredHitCount
The hit count value to compare against the ability object's hit count.
[Tooltip("The HitCount value to compare against.")]
public int RequiredHitCount
Field Value
Methods
Evaluate(ICharacter, EventData)
Evaluates whether the ability object's hit count satisfies the specified comparison type and value.
public override bool Evaluate(ICharacter initiator, EventData eventData)
Parameters
initiatorICharacterThe character initiating the evaluation.
eventDataEventDataThe event data containing the ability object.
Returns
- bool
True if the condition is met; otherwise, false.