ConditionalSkill

public interface ConditionalSkill

Interface for CONDITIONAL-type skills that activate when specific conditions are met.

Conditional skills check for certain game states before applying their effects (e.g., target HP below 30%, player stationary, 1v1 combat situation).

Inheritors

Functions

Link copied to clipboard
public abstract boolean conditionMet(Player player, Object context)
Checks if the skill's condition is currently met.
Link copied to clipboard
public abstract double getConditionalBonus(int skillLevel)
Gets the bonus value when the condition is met.
public double getConditionalBonus(Player player, int skillLevel)
Player-aware variant for skills whose payout depends on the player's state and not just the skill level.
Link copied to clipboard
public void onConditionMet(Player player, Object context)
Optional side-effect hook invoked exactly once when the condition succeeds for a hit.