isInvulnerable beta
Function of @v12-engine/engine
ts
export declare function isInvulnerable(world: World, entity: Entity): boolean;Whether a unit takes no damage and no enemy's ability may be cast on it: by its type (UnitTypeDef.invulnerable) or a buff it carries (BuffDef.invulnerable), as declared or as code decides