diff --git a/client/src/components/targeting.arrows.jsx b/client/src/components/targeting.arrows.jsx index 48dcaf3c..a79de304 100644 --- a/client/src/components/targeting.arrows.jsx +++ b/client/src/components/targeting.arrows.jsx @@ -27,6 +27,16 @@ class TargetSvg extends Component { }, 500); } + shouldComponentUpdate(newProps) { + if (newProps.game !== this.props.game) return true; + if (newProps.account !== this.props.account) return true; + if (newProps.animating !== this.props.animating) return true; + if (newProps.animSkill !== this.props.animSkill) return true; + if (newProps.gameEffectInfo !== this.props.gameEffectInfo) return true; + if (newProps.tutorialGame !== this.props.tutorialGame) return true; + return false; + } + render(props, state) { const { game, account, animating, animSkill, itemInfo, gameEffectInfo, tutorialGame } = props; const { width, height } = state;