From f70a6afe772afee272c26c36aad4f8fe1284b2fa Mon Sep 17 00:00:00 2001 From: ntr Date: Sun, 19 Jan 2020 12:31:08 +1000 Subject: [PATCH] noob proof surely --- client/src/components/game.construct.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/components/game.construct.jsx b/client/src/components/game.construct.jsx index 187c12a3..f3980794 100644 --- a/client/src/components/game.construct.jsx +++ b/client/src/components/game.construct.jsx @@ -79,13 +79,14 @@ class GameConstruct extends preact.Component { }; const unfocus = animFocus && !animFocus.includes(construct.id) ? 'unfocus' : ''; - const highlight = !authenticated && activeSkill ? 'highlight' : ''; + + const targeted = game.stack.find(c => c.target === construct.id); + const highlight = !authenticated && !targeted && activeSkill ? 'highlight' : ''; const crypSkills = player ?
{range(0, 3).map(j => )}
:
; - return (
selectSkillTarget(construct.id)}