diff --git a/client/src/components/vbox.component.jsx b/client/src/components/vbox.component.jsx index 6f29bb49..2ebf8209 100644 --- a/client/src/components/vbox.component.jsx +++ b/client/src/components/vbox.component.jsx @@ -60,10 +60,30 @@ function Vbox(args) { return true; } + const freeHighlight = () => { + if (!info[0] || info[0] !== 'highlight') return false; + return vbox.bound.some(b => { + const v = vboxInfo.vars.find(vi => vi.v === b); + if (info[1] === 'skill') return v.skill; + if (info[1] === 'spec') return v.spec; + return false; + }); + }; + + const freeShouldHighlight = freeHighlight(); + const freeRows = free.map((row, i) => { - const cells = row.map((c, j) => ( -