[
  {
    "id": "burning_trail",
    "type": "SPELL",
    "name": "Burning Trail",
    "description": "Speak a short phrase and transform your footsteps into burning pits of flame, leaving a trail of fire behind you.  Each step will consume mana, but you will be immune to fire while the spell is in effect.",
    "valid_targets": [ "self" ],
    "flags": [ "EVOCATION_SPELL", "CONCENTRATE", "VERBAL", "NO_HANDS", "MUST_HAVE_CLASS_TO_LEARN", "NO_FAIL" ],
    "extra_effects": [ { "id": "eoc_evocation_setup", "hit_self": true } ],
    "effect": "effect_on_condition",
    "effect_str": "EOC_CLEANSING_FLAME_FIRE_FOOSTEPS",
    "shape": "blast",
    "magic_type": "magiclysm_generic_magic",
    "spell_class": "CLEANSING_FLAME",
    "difficulty": 8,
    "max_level": 1,
    "base_casting_time": { "math": [ "u_effect_intensity('effect_burning_trail') > -1 ? 0 : 50" ] },
    "base_energy_cost": 25
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLEANSING_FLAME_FIRE_FOOSTEPS",
    "condition": { "not": { "u_has_effect": "effect_burning_trail" } },
    "effect": [
      { "u_add_effect": "effect_burning_trail", "duration": "PERMANENT" },
      { "u_add_effect": "effect_flame_immunity", "duration": "2 s" },
      { "run_eocs": "EOC_CLEANSING_FLAME_FIRE_FOOSTEPS_2", "time_in_future": 1 }
    ],
    "false_effect": [
      { "u_lose_effect": "effect_burning_trail" },
      { "run_eocs": "EOC_CLEANSING_FLAME_FIRE_FOOSTEPS_CLEANUP", "time_in_future": 2 }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLEANSING_FLAME_FIRE_FOOSTEPS_2",
    "condition": { "u_has_effect": "effect_burning_trail" },
    "effect": [
      {
        "run_eocs": [
          {
            "id": "EOC_CLEANSING_FLAME_FIRE_FOOSTEPS_3",
            "condition": { "math": [ "u_val('mana') >= 1" ] },
            "effect": [
              { "math": [ "u_val('mana')", "-=", "1" ] },
              { "u_add_effect": "effect_flame_immunity", "duration": "2 s" },
              { "u_set_field": "fd_fire", "radius": 0, "hit_player": false },
              { "run_eocs": "EOC_CLEANSING_FLAME_FIRE_FOOSTEPS_2", "time_in_future": 1 }
            ],
            "false_effect": [
              { "u_message": "You do not have enough mana to fuel your searing footsteps!", "type": "bad" },
              { "u_lose_effect": "effect_burning_trail" },
              { "run_eocs": "EOC_CLEANSING_FLAME_FIRE_FOOSTEPS_CLEANUP", "time_in_future": 2 }
            ]
          }
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_CLEANSING_FLAME_FIRE_FOOSTEPS_CLEANUP",
    "effect": [ { "u_lose_effect": "effect_flame_immunity" } ]
  },
  {
    "type": "ter_furn_transform",
    "id": "immolate_transform",
    "furniture": [
      { "result": [ [ "f_ash", 2 ], [ "f_null", 5 ] ], "valid_furniture": [ "f_null" ] },
      { "result": "f_ash", "valid_flags": [ "FLAMMABLE_ASH" ] }
    ],
    "terrain": [
      {
        "result": [ [ "t_dirt", 3 ], "t_grass_dead" ],
        "valid_terrain": [ "t_grass", "t_grass_long", "t_grass_tall", "t_grass_white", "t_grass_dead", "t_moss", "t_grass_golf" ],
        "message": "The earth is scorched clean!"
      },
      { "result": [ "t_dirtmound", "t_dirt" ], "valid_flags": [ "SHRUB" ] },
      { "result": [ [ "t_stump", 3 ], [ "t_tree_dead", 2 ], "t_dirtmound" ], "valid_flags": [ "TREE" ] }
    ]
  },
  {
    "id": "immolate_transform",
    "name": { "str": "Immolate Transform", "//~": "NO_I18N" },
    "description": { "str": "The part of the Immolate spell that causes the transform.", "//~": "NO_I18N" },
    "valid_targets": [ "ally", "hostile", "ground" ],
    "type": "SPELL",
    "effect": "ter_transform",
    "effect_str": "immolate_transform",
    "shape": "blast",
    "min_aoe": 3,
    "max_aoe": 5,
    "aoe_increment": 0.07
  },
  {
    "id": "immolate",
    "type": "SPELL",
    "name": "Immolate",
    "description": "A purifying blast of raw elemental heat wipes the slate clean, searing the Earth back to her most original state: a barren ball of burning rock.",
    "valid_targets": [ "ally", "hostile", "ground" ],
    "flags": [
      "EVOCATION_SPELL",
      "SOMATIC",
      "VERBAL",
      "NO_LEGS",
      "LOUD",
      "RANDOM_DAMAGE",
      "CONCENTRATE",
      "IGNITE_FLAMMABLE",
      "MUST_HAVE_CLASS_TO_LEARN",
      "NO_HANDS",
      "SPLIT_DAMAGE"
    ],
    "effect": "attack",
    "shape": "blast",
    "extra_effects": [ { "id": "immolate_transform" }, { "id": "immolate_push" }, { "id": "eoc_evocation_setup", "hit_self": true } ],
    "damage_type": "heat",
    "min_damage": { "math": [ "(u_spell_level('immolate') * 2.6) + 61" ] },
    "max_damage": { "math": [ "(u_spell_level('immolate') * 4.1) + 79" ] },
    "min_range": 4,
    "max_range": 8,
    "range_increment": 0.12,
    "min_aoe": 3,
    "max_aoe": 5,
    "aoe_increment": 0.07,
    "base_energy_cost": 520,
    "spell_class": "CLEANSING_FLAME",
    "difficulty": 4,
    "max_level": 35,
    "base_casting_time": 390,
    "sound_description": "a searing whoosh",
    "magic_type": "magiclysm_generic_magic"
  },
  {
    "id": "immolate_push",
    "type": "SPELL",
    "name": { "str": "Immolate Push Effect", "//~": "NO_I18N" },
    "description": { "str": "The immolate spell is powerful enough to push targets from its epicenter.", "//~": "NO_I18N" },
    "effect": "directed_push",
    "shape": "blast",
    "valid_targets": [ "ally", "hostile", "ground" ],
    "max_level": 35,
    "min_damage": 0,
    "max_damage": 2,
    "damage_increment": 0.07,
    "min_aoe": 1,
    "max_aoe": 3,
    "aoe_increment": 0.07,
    "min_range": 4,
    "max_range": 8,
    "range_increment": 0.12
  },
  {
    "id": "cleansingflame_hermes_heal",
    "type": "SPELL",
    "spell_class": "CLEANSING_FLAME",
    "name": "Hermes Reborn",
    "description": "In the sea without lees\nStandeth the bird of Hermes\nEating his wings variable\nAnd maketh himself yet full stable",
    "//": "Well that's too edgy now, need to replace it.",
    "valid_targets": [ "self" ],
    "effect": "attack",
    "shape": "blast",
    "base_casting_time": 350,
    "base_energy_cost": 800,
    "magic_type": "magiclysm_generic_magic",
    "difficulty": 10,
    "min_damage": { "math": [ "(u_spell_level('cleansingflame_hermes_heal') * -1.1) - 8" ] },
    "max_damage": { "math": [ "(u_spell_level('cleansingflame_hermes_heal') * -2.2) - 15" ] },
    "max_level": 35,
    "extra_effects": [ { "id": "cleansingflame_hermes_burn" }, { "id": "pain_split" }, { "id": "eoc_restoration_setup", "hit_self": true } ],
    "flags": [ "RESTORATION_SPELL", "RANDOM_DAMAGE", "SOMATIC", "VERBAL", "CONCENTRATE", "LOUD" ]
  },
  {
    "id": "cleansingflame_hermes_burn",
    "type": "SPELL",
    "name": { "str": "Hermes Reborn Fire", "//~": "NO_I18N" },
    "description": {
      "str": "Give some frost damage for Hermes Reborn spell.  Subspell; you aren't allowed to see it except in debug mode.",
      "//~": "NO_I18N"
    },
    "valid_targets": [ "self" ],
    "max_level": 35,
    "flags": [ "RANDOM_DAMAGE", "SPLIT_DAMAGE" ],
    "effect": "attack",
    "shape": "blast",
    "min_damage": 8,
    "max_damage": 20,
    "min_range": 1,
    "max_range": 1,
    "damage_type": "cold",
    "min_aoe": 3,
    "max_aoe": 5,
    "aoe_increment": 0.06,
    "spell_class": "CLEANSING_FLAME"
  }
]
