more general skillbtn disable

This commit is contained in:
ntr 2020-01-16 13:13:34 +10:00
parent d5668e085f
commit 32701ed754

View File

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