[
  {
    "type": "effect_on_condition",
    "id": "EOC_metamagic_toggle_intuitive",
    "condition": { "compare_string": [ "yes", { "u_val": "perk_metamagic_intuitive_deactivated" } ] },
    "effect": [
      { "u_message": "You activate your intuitive metamagic" },
      { "u_add_var": "perk_metamagic_intuitive_deactivated", "value": "no" }
    ],
    "false_effect": [
      { "u_message": "You deactivate your intuitive metamagic" },
      { "u_add_var": "perk_metamagic_intuitive_deactivated", "value": "yes" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_metamagic_intuitive",
    "eoc_type": "EVENT",
    "required_event": "opens_spellbook",
    "condition": {
      "and": [
        { "u_has_trait": "perk_metamagic_intuitive" },
        { "not": { "compare_string": [ "yes", { "u_val": "perk_metamagic_intuitive_deactivated" } ] } }
      ]
    },
    "effect": [
      {
        "math": [
          "u_spellcasting_adjustment('concentration', 'mod': 'magiclysm', 'flag_blacklist': 'CONSUMES_RUNES', 'flag_whitelist': 'CONCENTRATE' )",
          "=",
          "-1"
        ]
      },
      {
        "math": [
          "u_spellcasting_adjustment('cost', 'mod': 'magiclysm', 'flag_blacklist': 'CONSUMES_RUNES', 'flag_whitelist': 'CONCENTRATE' )",
          "=",
          "0.2"
        ]
      }
    ]
  }
]
