remove ko from wiggle event list

This commit is contained in:
ntr 2020-01-13 16:15:06 +10:00
parent b45778955f
commit 71b7f0b2b4
2 changed files with 6 additions and 2 deletions

View File

@ -22,7 +22,7 @@ class Amplify extends Component {
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 200 200">
<filter id="amplifyFilter">
<feTurbulence type="turbulence" baseFrequency="0.4" numOctaves="2" result="turbulence"></feTurbulence>
<feTurbulence type="turbulence" baseFrequency="0.1" numOctaves="2" result="turbulence"></feTurbulence>
<feDisplacementMap in2="turbulence" in="SourceGraphic" scale="2" xChannelSelector="R" yChannelSelector="G"></feDisplacementMap>
</filter>
<path filter='url("#amplifyFilter")' d={path} />

View File

@ -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