diff --git a/client/src/animations.utils.jsx b/client/src/animations.utils.jsx index 1ba4bf10..2580d68a 100644 --- a/client/src/animations.utils.jsx +++ b/client/src/animations.utils.jsx @@ -10,7 +10,6 @@ function setAnimations(r, store, account) { if (r.event[0] === 'Cast') { store.dispatch(actions.setAnimText(null)); - debugger const { construct, direction: [x, y] } = r.event[1]; const animY = y && player === account.id ? -1 : y; const animSource = { diff --git a/client/src/components/game.construct.effect.box.jsx b/client/src/components/game.construct.effect.box.jsx index afb97e7b..0766b014 100644 --- a/client/src/components/game.construct.effect.box.jsx +++ b/client/src/components/game.construct.effect.box.jsx @@ -23,7 +23,7 @@ class GameConstructEffects extends preact.Component { shouldComponentUpdate(newProps) { if (newProps.animText && newProps.animText !== this.props.animText) { const [type, info] = newProps.animText.event; - if (info.target === this.props.construct.id + if (info.construct === this.props.construct.id && (type === 'Effect' || type === 'Removal')) return true; } if (newProps.construct !== this.props.construct) return true; diff --git a/client/src/components/game.construct.life.jsx b/client/src/components/game.construct.life.jsx index 340208ab..e3ccc52a 100644 --- a/client/src/components/game.construct.life.jsx +++ b/client/src/components/game.construct.life.jsx @@ -9,7 +9,7 @@ class GameConstructLife extends preact.Component { shouldComponentUpdate(newProps) { if (newProps.animText && newProps.animText !== this.props.animText) { const [type, info] = newProps.animText.event; - if (info.target === this.props.construct.id + if (info.construct === this.props.construct.id && (type === 'Damage' || type === 'Healing' || type === 'Recharge')) return true; } if (newProps.construct !== this.props.construct) return true;