[
  {
    "id": "eater_drain_monster",
    "type": "SPELL",
    "name": { "str": "[Ψ]Essence Drain", "//~": "NO_I18N" },
    "description": { "str": "Eater's draining attack.  It's a bug if you have it.", "//~": "NO_I18N" },
    "valid_targets": [ "hostile" ],
    "message": "",
    "flags": [ "NO_EXPLOSION_SFX" ],
    "difficulty": 1,
    "max_level": 20,
    "effect": "effect_on_condition",
    "effect_str": "EOC_EATER_DRAIN",
    "shape": "blast",
    "min_range": 30
  },
  {
    "id": "eater_drain_monster_close_range",
    "type": "SPELL",
    "name": { "str": "[Ψ]Essence Drain", "//~": "NO_I18N" },
    "description": { "str": "Eater's draining attack.  It's a bug if you have it.", "//~": "NO_I18N" },
    "valid_targets": [ "hostile" ],
    "message": "",
    "flags": [ "NO_PROJECTILE", "NO_EXPLOSION_SFX" ],
    "difficulty": 1,
    "max_level": 20,
    "effect": "effect_on_condition",
    "effect_str": "EOC_EATER_DRAIN",
    "shape": "blast",
    "min_range": 30
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_EATER_DRAIN",
    "condition": "u_is_character",
    "effect": [ { "run_eocs": "EOC_EATER_DRAIN_2" } ],
    "false_effect": [ { "u_cast_spell": { "id": "eater_drain_health" } } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_EATER_DRAIN_2",
    "condition": { "math": [ "u_val('mana') >= 150" ] },
    "effect": [ { "u_cast_spell": { "id": "eater_drain_mana" } }, { "u_message": "You feel a sudden emptiness.", "type": "bad" } ],
    "false_effect": [ { "run_eocs": "EOC_EATER_DRAIN_3" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_EATER_DRAIN_3",
    "condition": { "math": [ "u_val('stamina') >= 200" ] },
    "effect": [
      { "u_cast_spell": { "id": "eater_drain_stamina" } },
      { "u_message": "For a moment, you feel exhausted.", "type": "bad" }
    ],
    "false_effect": [
      { "u_cast_spell": { "id": "eater_drain_health" } },
      { "u_message": "You feel your life draining away!", "type": "bad" }
    ]
  },
  {
    "id": "eater_drain_mana",
    "type": "SPELL",
    "name": { "str": "[Ψ]Eater Drain Mana", "//~": "NO_I18N" },
    "description": { "str": "Eater's spell to drain mana.  It's a bug if you have it.", "//~": "NO_I18N" },
    "valid_targets": [ "self" ],
    "flags": [ "NO_PROJECTILE", "NO_EXPLOSION_SFX" ],
    "effect": "recover_energy",
    "effect_str": "MANA",
    "shape": "blast",
    "max_level": 1,
    "min_damage": -150,
    "min_range": 30
  },
  {
    "id": "eater_drain_stamina",
    "type": "SPELL",
    "name": { "str": "[Ψ]Eater Drain Stamina", "//~": "NO_I18N" },
    "description": { "str": "Eater's spell to drain stamina.  It's a bug if you have it.", "//~": "NO_I18N" },
    "valid_targets": [ "self" ],
    "flags": [ "NO_PROJECTILE", "NO_EXPLOSION_SFX" ],
    "effect": "recover_energy",
    "effect_str": "STAMINA",
    "extra_effects": [ { "id": "eater_drain_sleepiness", "hit_self": false, "max_level": 3 } ],
    "shape": "blast",
    "max_level": 1,
    "min_damage": -200,
    "min_range": 30
  },
  {
    "id": "eater_drain_sleepiness",
    "type": "SPELL",
    "name": { "str": "[Ψ]Eater Drain Sleepiness", "//~": "NO_I18N" },
    "description": { "str": "Eater's spell to drain sleepiness.  It's a bug if you have it.", "//~": "NO_I18N" },
    "valid_targets": [ "self" ],
    "flags": [ "NO_PROJECTILE", "NO_EXPLOSION_SFX" ],
    "effect": "recover_energy",
    "effect_str": "SLEEPINESS",
    "shape": "blast",
    "max_level": 1,
    "min_damage": -2,
    "min_range": 30
  },
  {
    "id": "eater_drain_health",
    "type": "SPELL",
    "name": { "str": "[Ψ]Eater Drain Stamina", "//~": "NO_I18N" },
    "description": { "str": "Eater's spell to drain health.  It's a bug if you have it.", "//~": "NO_I18N" },
    "valid_targets": [ "self" ],
    "flags": [ "NO_PROJECTILE", "NO_EXPLOSION_SFX", "RANDOM_DAMAGE" ],
    "effect": "attack",
    "shape": "blast",
    "damage_type": "pure",
    "max_level": 1,
    "min_damage": 1,
    "max_damage": 2,
    "min_range": 30
  },
  {
    "type": "effect_on_condition",
    "id": "pigeon_aura",
    "condition": "u_is_character",
    "effect": [ { "math": [ "u_vitamin('passenger_pigeon_aura')", "+=", "400 + rand(100)" ] } ]
  },
  {
    "id": "null_break_concentration_spell",
    "type": "SPELL",
    "name": { "str": "[Ψ]Breaker end powers", "//~": "NO_I18N" },
    "description": { "str": "Breaker's power that ends concentration.  It's a bug if you have it.", "//~": "NO_I18N" },
    "valid_targets": [ "hostile" ],
    "flags": [ "NO_PROJECTILE", "NO_EXPLOSION_SFX" ],
    "effect": "effect_on_condition",
    "effect_str": "EOC_NULL_BREAK_CONCENTRATION",
    "shape": "blast",
    "max_level": 1,
    "min_damage": 1,
    "max_damage": 2,
    "min_range": 25
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_NULL_BREAK_CONCENTRATION",
    "condition": {
      "and": [
        { "u_has_effect": "effect_telepathic_psi_armor" },
        { "x_in_y_chance": { "x": { "math": [ "u_spell_level('telepathic_shield')" ] }, "y": 12 } }
      ]
    },
    "effect": [ { "u_message": "Icy fingers crawl across the surface of your mind, but your powers repel them.", "type": "bad" } ],
    "false_effect": [
      {
        "run_eocs": [
          {
            "id": "EOC_NULL_BREAK_CONCENTRATION_2",
            "condition": { "math": [ "u_vitamin('vitamin_maintained_powers') >= 1" ] },
            "effect": [
              {
                "run_eocs": [
                  {
                    "id": "EOC_NULL_BREAK_CONCENTRATION_3",
                    "condition": {
                      "x_in_y_chance": {
                        "x": {
                          "math": [
                            "5 - u_has_proficiency('prof_concentration_basic') - u_has_proficiency('prof_concentration_intermediate') - u_has_proficiency('prof_concentration_master')"
                          ]
                        },
                        "y": 5
                      }
                    },
                    "effect": [
                      { "u_message": "An icy dagger seems to stab into your brain.", "type": "bad" },
                      { "math": [ "u_pain()", "+=", "rand(3) + 1" ] },
                      { "run_eocs": "EOC_END_PSI_POWERS_MAINTAINED" }
                    ],
                    "false_effect": [
                      { "u_message": "Icy fingers crawl across your brain for a moment.", "type": "bad" },
                      { "math": [ "u_pain()", "+=", "1" ] }
                    ]
                  }
                ]
              }
            ],
            "false_effect": [
              { "u_message": "Icy fingers crawl across your brain for a moment.", "type": "bad" },
              { "math": [ "u_pain()", "+=", "1" ] }
            ]
          }
        ]
      }
    ]
  },
  {
    "id": "clairsentient_discern_weakness_monster",
    "type": "SPELL",
    "name": { "str": "[Ψ]Discern Weakness Triffid", "//~": "NO_I18N" },
    "description": {
      "str": "The triffid lays your weak points bare and shares them with others through the heartmind.  It's a bug if you have this.",
      "//~": "NO_I18N"
    },
    "message": "",
    "teachable": false,
    "valid_targets": [ "hostile" ],
    "flags": [ "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS", "IGNORE_WALLS", "RANDOM_DURATION", "NO_EXPLOSION_SFX" ],
    "max_level": 100,
    "effect": "effect_on_condition",
    "effect_str": "EOC_TRIFFID_CLEAR_DISCERN_WEAKNESS",
    "shape": "blast",
    "min_range": 3,
    "max_range": 100,
    "range_increment": 1
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TRIFFID_CLEAR_DISCERN_WEAKNESS",
    "effect": [
      { "math": [ "u_discern_weakness_clear_intelligence = 1.15" ] },
      { "math": [ "u_discern_weakness_clear_power_level = 4" ] },
      { "math": [ "u_nether_attunement_discern_weakness_scaling = 1.05" ] },
      {
        "u_add_effect": "effect_clair_weak_point",
        "duration": {
          "math": [
            "rng( ( ( (u_discern_weakness_clear_power_level * 1.5) + 13.5) * u_discern_weakness_clear_intelligence * u_nether_attunement_discern_weakness_scaling),( ( (u_discern_weakness_clear_power_level * 2.5) + 30) * u_discern_weakness_clear_intelligence * u_nether_attunement_discern_weakness_scaling) )"
          ]
        }
      }
    ]
  },
  {
    "id": "teleporter_triffid_summon_allies",
    "type": "SPELL",
    "name": { "str": "[Ψ]Teleporter Triffid Summon Allies", "//~": "NO_I18N" },
    "description": {
      "str": "The triffid uses its connection to the heartmind to teleport in guards around an intruder.  If you see this, it's a bug.",
      "//~": "NO_I18N"
    },
    "message": "",
    "teachable": false,
    "valid_targets": [ "hostile" ],
    "flags": [ "PSIONIC", "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS", "RANDOM_DURATION" ],
    "max_level": 20,
    "effect": "effect_on_condition",
    "effect_str": "EOC_TELEPORTER_TRIFFID_SUMMON_ALLIES",
    "shape": "blast",
    "min_range": 3,
    "max_range": 23,
    "range_increment": 1
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEPORTER_TRIFFID_SUMMON_ALLIES",
    "//": "This could potentially summon 12 triffids around someone.  Hope they're ready for that.",
    "effect": [
      {
        "u_spawn_monster": "GROUP_TRIFFID_HEARTGUARDS",
        "group": true,
        "real_count": [ 1, 2 ],
        "min_radius": 2,
        "max_radius": 6
      }
    ]
  },
  {
    "id": "electrokinetic_paralysis_monster",
    "type": "SPELL",
    "name": { "str": "[Ψ]Neural Spasms Monster", "//~": "NO_I18N" },
    "description": { "str": "Cause an electrical burst in the target's nervous system, stunning them briefly.", "//~": "NO_I18N" },
    "message": "",
    "teachable": false,
    "valid_targets": [ "hostile", "ally" ],
    "flags": [ "PSIONIC", "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS", "RANDOM_DURATION" ],
    "max_level": 20,
    "effect": "effect_on_condition",
    "effect_str": "EOC_ELECTROKIN_MONSTER_PARALYSIS",
    "shape": "blast",
    "min_duration": 150,
    "max_duration": 400,
    "min_range": 3,
    "max_range": 23,
    "range_increment": 1
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_ELECTROKIN_MONSTER_PARALYSIS",
    "effect": [
      { "math": [ "_duration = rng(1.5, 4)" ] },
      {
        "if": {
          "not": {
            "u_has_any_effect": [ "effect_electrokinetic_speed_boost", "effect_monster_neuro_acceleration", "effect_monster_neuro_acceleration" ]
          }
        },
        "then": [
          { "u_add_effect": "downed", "duration": { "math": [ "_duration" ] } },
          { "u_add_effect": "psi_dazed", "duration": { "math": [ "_duration" ] } },
          { "u_add_effect": "effect_electrokin_paralysis", "duration": { "math": [ "_duration" ] } }
        ],
        "else": { "u_message": "Your control over your own nerve impulses prevent the attack from taking hold.", "type": "good" }
      }
    ]
  },
  {
    "id": "electrokinetic_power_draining",
    "type": "SPELL",
    "name": { "str": "[Ψ]Electrokinetic Power Draining Spell", "//~": "NO_I18N" },
    "description": {
      "str": "The monster uses its powers to suck the energy out of battery devices.  If you see this, it's a bug.",
      "//~": "NO_I18N"
    },
    "message": "",
    "teachable": false,
    "valid_targets": [ "self", "ally", "hostile" ],
    "flags": [ "PSIONIC", "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS", "RANDOM_AOE", "IGNORE_WALLS" ],
    "max_level": 20,
    "effect": "effect_on_condition",
    "effect_str": "EOC_ELECTRONKINETIC_MONSTER_POWER_DRAINING",
    "shape": "blast",
    "min_range": 0,
    "max_range": 0,
    "min_aoe": 5,
    "max_aoe": 25
  },
  {
    "id": "electrokinetic_power_draining_electric_monster",
    "type": "SPELL",
    "name": { "str": "[Ψ]Electrokinetic Power Draining monster attack", "//~": "NO_I18N" },
    "description": { "str": "Gremlin's power to damage electric monsters.  It's a bug if you have it.", "//~": "NO_I18N" },
    "valid_targets": [ "self" ],
    "flags": [ "NO_PROJECTILE", "NO_EXPLOSION_SFX", "RANDOM_DAMAGE" ],
    "effect": "attack",
    "shape": "blast",
    "damage_type": "pure",
    "max_level": 1,
    "min_damage": 10,
    "max_damage": 55
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_ELECTRONKINETIC_MONSTER_POWER_DRAINING",
    "//": "x_in_y chance is because the power is an aura, to simulate it only hitting certain people instead of the player and all their followers.  If it becomes targeted, that will not be necessary.",
    "condition": "u_is_character",
    "effect": [
      {
        "run_eocs": [
          {
            "id": "EOC_ELECTRONKINETIC_MONSTER_POWER_DRAINING_CHARACTER_CHECK",
            "condition": { "x_in_y_chance": { "x": 1, "y": 3 } },
            "effect": [
              {
                "run_eocs": [
                  {
                    "id": "EOC_ELECTRONKINETIC_MONSTER_POWER_DRAINING_ELECTROKINETIC_CHECK",
                    "condition": { "not": { "u_has_effect": "effect_electrokin_personal_battery" } },
                    "effect": {
                      "u_run_inv_eocs": "random",
                      "search_data": [ { "uses_energy": true, "excluded_flags": [ "USES_BIONIC_POWER", "IS_UPS" ] } ],
                      "true_eocs": [
                        {
                          "id": "EOC_ELECTRONKINETIC_MONSTER_POWER_DRAINING_INV_RESULT",
                          "effect": [ { "math": [ "n_val('power')", "-=", "rand(200) + 50" ] } ]
                        }
                      ]
                    },
                    "false_effect": [ { "math": [ "u_val('stamina')", "-=", "rand(350) + 300" ] } ]
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "false_effect": [
      {
        "run_eocs": [
          {
            "id": "EOC_ELECTRONKINETIC_MONSTER_POWER_DRAINING_MONSTER_CHECK",
            "condition": { "and": [ { "x_in_y_chance": { "x": 1, "y": 3 } }, { "u_has_flag": "ELECTRIC" } ] },
            "effect": { "u_cast_spell": { "id": "electrokinetic_power_draining_electric_monster" } }
          }
        ]
      }
    ]
  },
  {
    "type": "SPELL",
    "id": "biokinetic_heightened_reflexes_monster",
    "name": { "str": "Heightened Reflexes enemy check", "//~": "NO_I18N" },
    "description": { "str": "Applies Enhanced Reflexes when a hostile target is detected.", "//~": "NO_I18N" },
    "flags": [ "SILENT", "NO_HANDS", "NO_LEGS", "MUST_HAVE_CLASS_TO_LEARN" ],
    "valid_targets": [ "hostile" ],
    "max_level": 1,
    "effect": "effect_on_condition",
    "effect_str": "EOC_FERAL_BIOKINESIS_HEIGHTENED_REFLEXES_APPLIER",
    "shape": "blast",
    "min_range": 60,
    "max_range": 60
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_FERAL_BIOKINESIS_HEIGHTENED_REFLEXES_APPLIER",
    "effect": [ { "npc_add_effect": "effect_monster_heightened_reflex", "duration": { "math": [ "rng(180,990)" ] } } ]
  },
  {
    "type": "SPELL",
    "id": "biokinetic_heightened_reflexes_enhanced_monster",
    "name": { "str": "Heightened Reflexes enemy check", "//~": "NO_I18N" },
    "description": {
      "str": "Applies an even stronger version of Heightened Reflexes when a hostile target is detected.",
      "//~": "NO_I18N"
    },
    "flags": [ "SILENT", "NO_HANDS", "NO_LEGS", "MUST_HAVE_CLASS_TO_LEARN" ],
    "valid_targets": [ "hostile" ],
    "max_level": 1,
    "effect": "effect_on_condition",
    "effect_str": "EOC_FERAL_BIOKINESIS_HEIGHTENED_REFLEXES_ENHANCED_APPLIER",
    "shape": "blast",
    "min_range": 60,
    "max_range": 60
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_FERAL_BIOKINESIS_HEIGHTENED_REFLEXES_ENHANCED_APPLIER",
    "effect": [ { "npc_add_effect": "effect_monster_heightened_reflex_enhanced", "duration": { "math": [ "rng(270,1530)" ] } } ]
  },
  {
    "type": "SPELL",
    "id": "electrokinetic_neuro_acceleration_monster",
    "name": { "str": "Neuro-Acceleration monster enemy check", "//~": "NO_I18N" },
    "description": { "str": "Applies Neuro-Acceleration when a hostile target is detected.", "//~": "NO_I18N" },
    "flags": [ "SILENT", "NO_HANDS", "NO_LEGS", "MUST_HAVE_CLASS_TO_LEARN" ],
    "valid_targets": [ "hostile" ],
    "max_level": 1,
    "effect": "effect_on_condition",
    "effect_str": "EOC_FERAL_ELECTROKINETIC_NEURO_ACCELERATION_APPLIER",
    "shape": "blast",
    "min_range": 60,
    "max_range": 60
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_FERAL_ELECTROKINETIC_NEURO_ACCELERATION_APPLIER",
    "effect": [ { "npc_add_effect": "effect_monster_neuro_acceleration", "duration": { "math": [ "rng(225,742)" ] } } ]
  },
  {
    "type": "SPELL",
    "id": "electrokinetic_neuro_acceleration_enhanced_monster",
    "name": { "str": "Neuro-Acceleration Enhanced monster enemy check", "//~": "NO_I18N" },
    "description": { "str": "Applies an enhanced version of Neuro-Acceleration when a hostile target is detected.", "//~": "NO_I18N" },
    "flags": [ "SILENT", "NO_HANDS", "NO_LEGS", "MUST_HAVE_CLASS_TO_LEARN" ],
    "valid_targets": [ "hostile" ],
    "max_level": 1,
    "effect": "effect_on_condition",
    "effect_str": "EOC_FERAL_ELECTROKINETIC_NEURO_ACCELERATION_ENHANCED_APPLIER",
    "shape": "blast",
    "min_range": 60,
    "max_range": 60
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_FERAL_ELECTROKINETIC_NEURO_ACCELERATION_ENHANCED_APPLIER",
    "effect": [ { "npc_add_effect": "effect_monster_neuro_acceleration_enhanced", "duration": { "math": [ "rng(225,742)" ] } } ]
  },
  {
    "type": "SPELL",
    "id": "hidebehind_apply_obscurity_power",
    "name": { "str": "Hidebehind Obscurity enemy check", "//~": "NO_I18N" },
    "description": { "str": "Preps for using Obscurity when a hostile target is detected.", "//~": "NO_I18N" },
    "flags": [ "SILENT", "NO_HANDS", "NO_LEGS", "NO_PROJECTILE", "NO_EXPLOSION_SFX", "MUST_HAVE_CLASS_TO_LEARN" ],
    "valid_targets": [ "hostile" ],
    "max_level": 1,
    "effect": "effect_on_condition",
    "effect_str": "EOC_MONSTER_APPLY_OBSCURITY",
    "shape": "blast",
    "min_range": 60,
    "max_range": 60
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_MONSTER_APPLY_OBSCURITY",
    "condition": {
      "and": [
        { "not": { "u_has_flag": "TEEPSHIELD" } },
        { "not": { "u_has_flag": "TEEP_IMMUNE" } },
        { "not": { "u_has_effect": "eff_monster_immune_to_telepathy" } }
      ]
    },
    "effect": [
      { "math": [ "n_power_obscurity_duration = rng(205,835)" ] },
      { "u_add_effect": "telepathic_ignorance", "duration": { "math": [ "n_power_obscurity_duration" ] } },
      { "npc_add_effect": "telepathic_ignorance_self", "duration": { "math": [ "n_power_obscurity_duration" ] } }
    ]
  },
  {
    "id": "teleporter_breach_lab_devourer",
    "type": "SPELL",
    "name": { "str": "[Ψ]Breach Melded Task Force", "//~": "NO_I18N" },
    "description": {
      "str": "Open a portal to the Nether and summon monsters, if you're also a monster.  This will not end badly for you because they're all on your side.",
      "//~": "NO_I18N"
    },
    "message": "",
    "teachable": false,
    "valid_targets": [ "self", "hostile" ],
    "spell_class": "TELEPORTER",
    "skill": "metaphysics",
    "flags": [ "PSIONIC", "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS" ],
    "max_level": 30,
    "effect": "effect_on_condition",
    "effect_str": "EOC_TELEPORT_SUMMON_LAB_DEVOURER",
    "shape": "blast",
    "min_damage": 1,
    "min_range": 5,
    "max_range": 80,
    "range_increment": 1
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_TELEPORT_SUMMON_LAB_DEVOURER",
    "effect": [
      {
        "u_spawn_monster": "GROUP_NETHER_LAB_DEVOURER_BREACH",
        "group": true,
        "real_count": [ 1, 3 ],
        "min_radius": 1,
        "max_radius": 3
      }
    ]
  },
  {
    "type": "SPELL",
    "id": "whispering_amalgamation_apply_mindsight",
    "name": { "str": "Eater apply mindsight", "//~": "NO_I18N" },
    "description": "Add the effect to give the whispering_amalgamation mindsight.",
    "flags": [ "SILENT", "NO_HANDS", "NO_LEGS", "NO_PROJECTILE", "NO_EXPLOSION_SFX", "MUST_HAVE_CLASS_TO_LEARN" ],
    "valid_targets": [ "self" ],
    "max_level": 1,
    "effect": "effect_on_condition",
    "effect_str": "EOC_WHISPERING_AMALGAMATION_MINDSIGHT",
    "shape": "blast",
    "min_range": 0,
    "max_range": 0,
    "min_duration": 900000,
    "max_duration": 900000
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_WHISPERING_AMALGAMATION_MINDSIGHT",
    "effect": [
      { "u_add_effect": "eff_mind_seeing_bonus_30", "duration": 9000 },
      { "u_add_effect": "eff_mind_seeing_bonus_10", "duration": 9000 }
    ]
  },
  {
    "type": "SPELL",
    "id": "amalgamation_telekinetic_shielder_shield_other_spell",
    "name": { "str": "Inertial Barrier Guardian Amalgamation Shield Detector", "//~": "NO_I18N" },
    "description": { "str": "Preps for using Inertial Barrier when a hostile target is detected.", "//~": "NO_I18N" },
    "flags": [ "SILENT", "NO_HANDS", "NO_LEGS", "NO_PROJECTILE", "MUST_HAVE_CLASS_TO_LEARN" ],
    "valid_targets": [ "hostile" ],
    "max_level": 1,
    "effect": "effect_on_condition",
    "effect_str": "EOC_AMALGAMATION_TELEKINETIC_SHIELDER_APPLICATION",
    "shape": "blast",
    "min_damage": 0,
    "max_damage": 0,
    "min_range": 20,
    "max_range": 20
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_AMALGAMATION_TELEKINETIC_SHIELDER_APPLICATION",
    "condition": { "math": [ "u_mon_species_nearby('ZOMBIE', 'FERAL', 'radius': 25, 'attitude': 'both') > 0" ] },
    "//": "Until monsters can actually use spells on allies, the buff has to check from the target's location.",
    "effect": [
      { "u_cast_spell": { "id": "amalgamation_telekinetic_shielder_shield_other_spell_self_casting", "hit_self": true } },
      { "npc_add_effect": "effect_amalgamation_telekinetic_shielder_counter", "duration": 60 }
    ]
  },
  {
    "id": "amalgamation_telekinetic_shielder_shield_other_spell_self_casting",
    "type": "SPELL",
    "name": { "str": "Inertial Barrier Guardian Amalgamation Random Self Spell", "//~": "NO_I18N" },
    "description": { "str": "I don't know why this spell is necessary, but it is.", "//~": "NO_I18N" },
    "valid_targets": [ "self" ],
    "flags": [ "NO_EXPLOSION_SFX", "SILENT" ],
    "effect": "noise",
    "min_damage": 0,
    "max_damage": 0,
    "shape": "blast",
    "extra_effects": [ { "id": "amalgamation_telekinetic_shielder_shield_other_spell_apply_shield" } ]
  },
  {
    "type": "SPELL",
    "id": "amalgamation_telekinetic_shielder_shield_other_spell_apply_shield",
    "name": { "str": "Inertial Barrier Guardian Amalgamation Shield Applicator", "//~": "NO_I18N" },
    "description": { "str": "The actual power that applies Inertial Barrier to an ally.", "//~": "NO_I18N" },
    "flags": [ "SILENT", "NO_HANDS", "NO_LEGS", "NO_PROJECTILE", "RANDOM_TARGET", "RANDOM_DURATION" ],
    "valid_targets": [ "hostile" ],
    "max_level": 1,
    "effect": "attack",
    "effect_str": "effect_monster_inertial_barrier",
    "shape": "blast",
    "min_range": 25,
    "max_range": 25,
    "min_duration": 4500,
    "max_duration": 7500,
    "targeted_monster_species": [ "ZOMBIE", "FERAL" ],
    "ignored_monster_species": [ "PSI_NULL" ]
  }
]
