tryConsume

public static boolean tryConsume(Player player, String skillId, long cooldown)

Returns true if the given player's proc of the given skill is ready to fire (not on internal cooldown). If ready, marks it as fired now.

Return

true if the proc may fire, false if it is still on cooldown.

Parameters

player

The player attempting to proc the skill.

skillId

The stable skill id (e.g. "axes_devastating_blow").

cooldown

The internal cooldown in milliseconds. If <= 0 the proc is always ready and no state is recorded.