Skip to content

removeBuff beta ​

Function of @v12-engine/engine

ts
export declare function removeBuff(world: World, entity: Entity, buff: string, source?: Entity): void;

Takes a buff off, before its time is up: the one of it source put on, for buffs each source has their own of, or the first. The buffEnd hook hears of it, and the buff's onRemove