fix healing event, remove brackets

This commit is contained in:
Mashy
2019-12-10 18:38:34 +10:00
parent c8561dba9a
commit 89fb27d858
4 changed files with 30 additions and 16 deletions
@@ -10,7 +10,7 @@ class GameConstructLife extends preact.Component {
if (newProps.resolution && newProps.resolution !== this.props.resolution) {
const [type, variant] = newProps.resolution.event;
if (variant.construct === this.props.construct.id
&& (type === 'Damage' || type === 'Healing' || type === 'Recharge')) return true;
&& (type === 'Damage' || type === 'Healing')) return true;
}
if (newProps.construct !== this.props.construct) return true;
return false;