reduceCooldown beta
Function of @v12-engine/engine
ts
export declare function reduceCooldown(entity: Entity, ability: string, by: number | {
share: number;
}): boolean;Takes seconds off what is left of an entity's ability's cooldown (AbilityState.cooldown): a number of them, or a share of what is left (0.5: half). Never below 0. A kill that cuts a cooldown, a hit that refunds a part of it. False for an ability the entity does not have