Skip to content

upgradeAbility beta ​

Function of @v12-engine/engine

ts
export declare function upgradeAbility(world: World, entity: Entity, from: string, to: string): boolean;

Makes an ability of a unit's into one it may become (AbilityDef.upgrades), for good: at its level, with its cooldown. False where it has no such ability or that is not one it may become