fix healing event, remove brackets
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user