From 71b7f0b2b4758b22385072cfbd61ab3bdf85c2c1 Mon Sep 17 00:00:00 2001 From: ntr Date: Mon, 13 Jan 2020 16:15:06 +1000 Subject: [PATCH] remove ko from wiggle event list --- client/src/components/anims/amplify.jsx | 2 +- client/src/components/construct.jsx | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/components/anims/amplify.jsx b/client/src/components/anims/amplify.jsx index 9dc087a0..6e77cc2c 100644 --- a/client/src/components/anims/amplify.jsx +++ b/client/src/components/anims/amplify.jsx @@ -22,7 +22,7 @@ class Amplify extends Component { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"> - + diff --git a/client/src/components/construct.jsx b/client/src/components/construct.jsx index ec3d7813..0c979107 100644 --- a/client/src/components/construct.jsx +++ b/client/src/components/construct.jsx @@ -69,7 +69,11 @@ class ConstructAvatar extends Component { const type = resolution.event[0]; // only trigger the wiggle on damage and ko events rather than spam it on everything // also stops wiggle triggering when invert effect is applied - if (['Damage', 'Ko'].includes(type)) return wiggle(construct.id, this.idle); + const wiggleEvents = [ + 'Damage', + // 'Ko' + ]; + if (wiggleEvents.includes(type)) return wiggle(construct.id, this.idle); } // different source object and source construct