From e66dae8b60e5df74b324df3bf21f3448ad5272f2 Mon Sep 17 00:00:00 2001 From: ntr Date: Fri, 10 Jan 2020 12:42:17 +1000 Subject: [PATCH] fix skill highlighting --- client/src/components/game.construct.skill.btn.jsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/client/src/components/game.construct.skill.btn.jsx b/client/src/components/game.construct.skill.btn.jsx index db0ac3ed..cedf7c33 100644 --- a/client/src/components/game.construct.skill.btn.jsx +++ b/client/src/components/game.construct.skill.btn.jsx @@ -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` : '';