only trigger wiggle on damage / ko, fixes wiggle issue also

This commit is contained in:
Mashy 2019-12-20 11:23:53 +10:00
parent d307241f75
commit ecc6eebdbb
2 changed files with 4 additions and 5 deletions

View File

@ -65,7 +65,10 @@ class ConstructAvatar extends Component {
const { animSource, animTarget, resolution, construct, account } = this.props;
// a different text object and text construct
if (resolution && resolution !== prevProps.resolution && resolution.event[1].construct === construct.id) {
return wiggle(construct.id, this.idle);
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);
}
// different source object and source construct

View File

@ -1,9 +1,5 @@
# FIXME
game ready not auto starting resolve phase
sleep heal
invert animation - too slow
slay animation still looks a bit weird
electric / electrocute anim order some issue
triaged / decayed / siphoned / electrocute effect removal with purify / purge
inverted green damage ??