Skip to content

swapAbility beta ​

Function of @v12-engine/engine

ts
export declare function swapAbility(world: World, entity: Entity, from: string, to: string, options?: Omit<GrantOptions, 'slot'>): boolean;

Puts an ability in the place of another of a unit's (from), at its level (or options.level): for good, or for a while or so many casts (until, uses: then from is back, its cooldown having run on). A stance, an awakened ability, a weapon of a set. False where it has no from, the new one is none or it has it already