noob proof surely
This commit is contained in:
parent
09cf3c3f3f
commit
f70a6afe77
@ -79,13 +79,14 @@ class GameConstruct extends preact.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const unfocus = animFocus && !animFocus.includes(construct.id) ? 'unfocus' : '';
|
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
|
const crypSkills = player
|
||||||
? <div class="skills"> {range(0, 3).map(j => <SkillBtn key={j} construct={construct} i={j} />)} </div>
|
? <div class="skills"> {range(0, 3).map(j => <SkillBtn key={j} construct={construct} i={j} />)} </div>
|
||||||
: <div></div>;
|
: <div></div>;
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
onClick={() => selectSkillTarget(construct.id)}
|
onClick={() => selectSkillTarget(construct.id)}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user