fix skill btn

This commit is contained in:
ntr
2019-06-04 18:08:22 +10:00
parent 2fbdf8d9fe
commit 841aa40cf0
4 changed files with 15 additions and 11 deletions
+4 -4
View File
@@ -47,12 +47,12 @@ function Skill(props) {
);
}
const skillChosen = game.stack.some(stack => stack.source_construct_id === construct.id);
// const skillChosen = game.stack.some(stack => stack.source_construct_id === construct.id);
const targeting = game.stack.some(stack => stack.source_construct_id === construct.id && stack.skill === s.skill);
if (skillChosen && !targeting) {
return false;
}
// if (skillChosen && !targeting) {
// return false;
// }
const cdText = construct.skills[i].cd > 0
? `- ${s.cd}T`