background for active skills

This commit is contained in:
Mashy
2019-10-03 15:21:19 +10:00
parent 962b72b85f
commit 0f1ae4d17a
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ function wiggle(id, idle) {
const x = window.screen.width * 0.01 * (Math.round(Math.random()) ? Math.random() : -Math.random());
const y = window.screen.height * 0.01 * (Math.round(Math.random()) ? Math.random() : -Math.random());
console.log(x, y);
// console.log(x, y);
return anime({
targets: target,
rotate: 0,
+1 -2
View File
@@ -55,7 +55,6 @@ function Skill(props) {
// if (skillChosen && !targeting) {
// return false;
// }
const cdText = construct.skills[i].cd > 0
? `- ${s.cd}T`
: '';
@@ -72,7 +71,7 @@ function Skill(props) {
return (
<button
disabled={cdText || s.disabled || ko}
class={`construct-skill-btn ${(targeting || highlight) ? 'active' : ''}`}
class={`${(targeting || highlight) ? 'active' : ''}`}
type="submit"
onClick={onClick}>
{s.skill} {cdText}