disabled skill btns on finished

This commit is contained in:
ntr 2020-01-15 08:43:17 +10:00
parent deb327e791
commit e69e5b36e5

View File

@ -82,9 +82,11 @@ function Skill(props) {
const border = buttons[removeTier(s.skill)] ? buttons[removeTier(s.skill)]() : ''; const border = buttons[removeTier(s.skill)] ? buttons[removeTier(s.skill)]() : '';
const finished = game.phase === 'Finished';
return ( return (
<button <button
disabled={cdText || s.disabled || ko} disabled={cdText || s.disabled || ko || finished}
class={`${(targeting || highlight) ? 'active' : ''} ${border}`} class={`${(targeting || highlight) ? 'active' : ''} ${border}`}
onMouseOver={e => hoverInfo(e, { skill: s.skill, constructId: construct.id })} onMouseOver={e => hoverInfo(e, { skill: s.skill, constructId: construct.id })}
onMouseOut={e => hoverInfo(e, null)} onMouseOut={e => hoverInfo(e, null)}