takeForm beta
Function of @v12-engine/engine
export declare function takeForm(world: World, entity: Entity, into: string, options?: FormOptions): void;Turns a hero into one of its forms where it stands (into, a unit type that is a hero's: its stats, growth and look are the form's), as the morph effect does. Kept: its id, owner and place, its level and experience, its items, its buffs, the share of its health and mana, and what it was told (it goes on as the form). It learns the form's abilities (FormOptions.learns) at the levels the form says (levels: one of its own's, or a number; by slot in HeroForm's shorter shape, Q is Q); those of its own it keeps (keeps, the ability that made the form, the spells it brought, any of its own the form learns) are the same, cooldown and all; the rest are put away until it turns back (leaveForm), their cooldowns as cooldowns says (running down by the time away when left out). A hero in a form already turns back first