[
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_HEALTH_POWER_VS_DISEASE_CHECK",
    "recurrence": [ "4 hours", "8 hours" ],
    "global": true,
    "run_for_npcs": true,
    "condition": {
      "and": [
        { "u_has_effect": "effect_vita_health" },
        {
          "or": [
            { "u_has_effect": "pre_common_cold" },
            { "u_has_effect": "pre_flu" },
            { "u_has_effect": "pre_conjunctivitis_viral" },
            { "u_has_effect": "pre_conjunctivitis_bacterial" }
          ]
        }
      ]
    },
    "effect": [
      {
        "run_eocs": [
          "EOC_VITAKIN_HEALTH_POWER_VS_PRE_COMMON_COLD",
          "EOC_VITAKIN_HEALTH_POWER_VS_PRE_FLU",
          "EOC_VITAKIN_HEALTH_POWER_VS_PRE_CONJUNCTIVITIS_VIRAL",
          "EOC_VITAKIN_HEALTH_POWER_VS_PRE_CONJUNCTIVITIS_BACTERIA"
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_HEALTH_POWER_VS_PRE_COMMON_COLD",
    "condition": {
      "and": [
        { "u_has_effect": "pre_common_cold" },
        { "x_in_y_chance": { "x": { "math": [ "10 + u_spell_level('vita_health_power')" ] }, "y": 100 } }
      ]
    },
    "effect": [ { "u_add_effect": "effect_vita_health_common_cold_protection", "duration": "10 days" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_HEALTH_POWER_VS_PRE_FLU",
    "condition": {
      "and": [
        { "u_has_effect": "pre_flu" },
        { "x_in_y_chance": { "x": { "math": [ "10 + u_spell_level('vita_health_power')" ] }, "y": 100 } }
      ]
    },
    "effect": [ { "u_add_effect": "effect_vita_health_flu_protection", "duration": "10 days" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_HEALTH_POWER_VS_PRE_CONJUNCTIVITIS_VIRAL",
    "condition": {
      "and": [
        { "u_has_effect": "pre_conjunctivitis_viral" },
        { "x_in_y_chance": { "x": { "math": [ "10 + u_spell_level('vita_health_power')" ] }, "y": 100 } }
      ]
    },
    "effect": [ { "u_add_effect": "effect_vita_health_conjunctivitis_viral_protection", "duration": "10 days" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_VITAKIN_HEALTH_POWER_VS_PRE_CONJUNCTIVITIS_BACTERIA",
    "condition": {
      "and": [
        { "u_has_effect": "pre_conjunctivitis_bacterial" },
        { "x_in_y_chance": { "x": { "math": [ "10 + u_spell_level('vita_health_power')" ] }, "y": 100 } }
      ]
    },
    "effect": [ { "u_add_effect": "effect_vita_health_conjunctivitis_bacterial_protection", "duration": "10 days" } ]
  }
]
