Talents
WARCRAFT FOREVER / DEVELOPERS
Saved builds
Render a saved allocation as linked icons or a read-only tree.
const saved = { class: 'paladin', code: '1__', revision: '2' };
const preview = WarcraftForever.Talents.mount('#build-preview', {
class: saved.class,
build: { code: saved.code, revision: saved.revision },
view: 'icons', // or 'tree'
chrome: 'bare'
});
preview.ready.catch(console.error);Icons link to the full Warcraft Forever build. The revision identifies the talent layout, independently of the JS release. Preserve it alongside the code. Your backend must validate submitted builds and enforce your application’s class and level requirements; browser validation is only the editing experience.