Skip to content

grantAbility beta ​

Function of @v12-engine/engine

ts
export declare function grantAbility(world: World, entity: Entity, ability: string, options?: GrantOptions): boolean;

Gives a unit an ability it has not (GrantOptions: at a level, for a while or so many casts, at a place on its card). What lasts a while needs the ability changes pack (abilityChangesPack) to end; for good, it does not. False where the ability is none or the unit has it already