noob proof surely

This commit is contained in:
ntr 2020-01-19 12:31:08 +10:00
parent 09cf3c3f3f
commit f70a6afe77

View File

@ -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
? <div class="skills"> {range(0, 3).map(j => <SkillBtn key={j} construct={construct} i={j} />)} </div>
: <div></div>;
return (
<div
onClick={() => selectSkillTarget(construct.id)}