fix skill highlighting

This commit is contained in:
ntr 2020-01-10 12:42:17 +10:00
parent e7f2d0261a
commit e66dae8b60

View File

@ -64,12 +64,9 @@ function Skill(props) {
);
}
// 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);
// const skillChosen = game.stack.some(stack => stack.source === construct.id);
const targeting = game.stack.some(stack => stack.source === construct.id && stack.skill === s.skill);
// if (skillChosen && !targeting) {
// return false;
// }
const cdText = construct.skills[i].cd > 0
? `${s.cd}T`
: '';