more general skillbtn disable
This commit is contained in:
parent
d5668e085f
commit
32701ed754
@ -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)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user