function enemy(state = [], action) {
  console.log(state, action);

  switch (action.type) {
    case "ATTACK":
      var amount = action.attacker.stats.str
      state.status.health -= amount;
  }
  return state;
}

export default enemy;

@@ -165,38 +165,120 @@
 tate
-.status.health -= amount;%0A  %7D%0A
+ = JSON.parse(JSON.stringify(state));%0A      state.status.health -= amount;%0A      return state;%0A    default:%0A    
   re
@@ -289,16 +289,20 @@
  state;%0A
+  %7D%0A
 %7D%0A%0Aexpor

copy states