diff --git a/TODO.md b/TODO.md index a38c5d0..a7a7ae4 100644 --- a/TODO.md +++ b/TODO.md @@ -1,3 +1,5 @@ +# TODO + - [ ] Prevent reducing talent points on a row when it is a dependency for points already spent in the next row - [ ] Prevent reducing talent points on a talent that is a requirement for another talent with points in it - [ ] Talent tooltips diff --git a/src/components/TalentSlot.tsx b/src/components/TalentSlot.tsx index 14125a4..5e5a40d 100644 --- a/src/components/TalentSlot.tsx +++ b/src/components/TalentSlot.tsx @@ -31,7 +31,7 @@ export const TalentSlot: FC = (props) => { const { talent, specId, knownTalents, availablePoints } = props const points = knownTalents.get(talent.id, 0) const showPoints = points > 0 || availablePoints > 0 - const disabled = false // props.disabled || !showPoints || !isAvailable(talent, specId, knownTalents) + const disabled = props.disabled || !showPoints || !isAvailable(talent, specId, knownTalents) const cn = classNames('talent', { 'talent--disabled': !!disabled,