Skip to content

buyBack beta ​

Function of @v12-engine/engine

ts
export declare function buyBack(world: World, hero: Entity): boolean;

Buys a fallen hero back (HeroSettings.buybackCost): its player pays, it is back at once at its side's home (where it fell when there is none), its wait to come back by itself over, and it may not again for buybackCooldown seconds. False, and the player told why, where it cannot (buybackRefusal)